instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009? | CREATE TABLE table_name_4 (
inhabitants INTEGER,
mayor VARCHAR,
election VARCHAR
) | SELECT MIN(inhabitants) FROM table_name_4 WHERE mayor = "matteo renzi" AND election > 2009 |
How many numbers were recorded for Qatari female when Qatari male was 97? | CREATE TABLE table_19309079_2 (
qatari_female VARCHAR,
qatari_male VARCHAR
) | SELECT COUNT(qatari_female) FROM table_19309079_2 WHERE qatari_male = 97 |
What is the most gold medals a team with less than 2 silvers, more than 7 total medals, and less than 8 bronze medals has? | CREATE TABLE table_78097 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_78097 WHERE "Silver" < '2' AND "Total" > '7' AND "Bronze" < '8' |
What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos? | CREATE TABLE table_7725 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
) | SELECT "Transfer fee" FROM table_7725 WHERE "Ends" = '2011' AND "Moving from" = 'thrasyvoulos' |
Which lane did the athlete swim in who had a semi-final time of 49.19? | CREATE TABLE table_name_47 (
lane INTEGER,
semi VARCHAR
) | SELECT MIN(lane) FROM table_name_47 WHERE semi = 49.19 |
What is the rating/share for 18-49 for Week 6, Part 1? | CREATE TABLE table_3270 (
"Episode Number" text,
"Episode" text,
"Original Airdate" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text,
"Weekly Rank" real
) | SELECT "Rating/Share (18\u201349)" FROM table_3270 WHERE "Episode" = 'Week 6, Part 1' |
Find all types of store and number of them. Show the proportion. | CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number_of_product_category real,
Ranking int
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE product (
product_id int,
product text,
dimensions text,
dpi real,
pages_per_minute_color real,
max_page_size text,
interface text
)
CREATE TABLE store_district (
Store_ID int,
District_ID int
) | SELECT Type, COUNT(*) FROM store GROUP BY Type |
what is the object type when the right ascension (j2000) is 11h10m42.8s? | CREATE TABLE table_name_77 (
object_type VARCHAR,
right_ascension___j2000__ VARCHAR
) | SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" |
What position is Charone Peake? | CREATE TABLE table_17086 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Position" FROM table_17086 WHERE "Player" = 'Charone Peake' |
what measurement does the contestant from sindelfingen have? | CREATE TABLE table_26427332_17 (
measurements__in_cm_ VARCHAR,
city VARCHAR
) | SELECT measurements__in_cm_ FROM table_26427332_17 WHERE city = "Sindelfingen" |
What date was the match against adri n men ndez-maceiras? | CREATE TABLE table_60686 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Date" FROM table_60686 WHERE "Opponent" = 'adrián menéndez-maceiras' |
what is the difference in the year published between iso/iec 15288 and iso/ice 20000-1 ? | CREATE TABLE table_204_200 (
id number,
"iso/iec standard" text,
"title" text,
"status" text,
"description" text,
"wg" number
) | SELECT ABS((SELECT "status" FROM table_204_200 WHERE "iso/iec standard" = 'iso/iec 15288') - (SELECT "status" FROM table_204_200 WHERE "iso/iec standard" = 'iso/iec 20000-1')) |
What is the home team of the game with a price decision and the new jersey devils as the visitor team? | CREATE TABLE table_48061 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Home" FROM table_48061 WHERE "Decision" = 'price' AND "Visitor" = 'new jersey devils' |
Which junior team is associated with an NHL pick by the Buffalo Sabres? | CREATE TABLE table_4036 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "College/junior/club team" FROM table_4036 WHERE "NHL team" = 'Buffalo Sabres' |
List the distinct hometowns that are not associated with any gymnast. | CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points number,
horizontal_bar_points number,
total_points number
)
CREATE TABLE people (
people_id number,
name text,
age number,
height number,
hometown text
) | SELECT DISTINCT hometown FROM people EXCEPT SELECT DISTINCT T2.hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id |
Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov | CREATE TABLE table_245801_1 (
launch_date VARCHAR,
crew VARCHAR
) | SELECT launch_date FROM table_245801_1 WHERE crew = "Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov" |
When was the Browns' game that over 36,796 attended? | CREATE TABLE table_32900 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_32900 WHERE "Attendance" > '36,796' |
Who's from Bay City, TX? | CREATE TABLE table_52544 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "Player" FROM table_52544 WHERE "Hometown" = 'bay city, tx' |
Who is Winners that has editions of 1992, 2003 as Not Winning | CREATE TABLE table_15300 (
"Club" text,
"Winners" text,
"Finalists" text,
"Winning editions" text,
"Not winning editions" text
) | SELECT "Winners" FROM table_15300 WHERE "Not winning editions" = '1992, 2003' |
Who was the writer in the episode directed by Jesse Peretz? | CREATE TABLE table_3683 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "Written by" FROM table_3683 WHERE "Directed by" = 'Jesse Peretz' |
What is the 2nd leg in match with team 2 of Teram? | CREATE TABLE table_62868 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_62868 WHERE "Team 2" = 'teram' |
what is the minimum stage where mountains classification is aitor osa and aitor gonz lez won? | CREATE TABLE table_19858 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Combination classification" text,
"Team classification" text
) | SELECT MIN("Stage") FROM table_19858 WHERE "Mountains classification" = 'Aitor Osa' AND "Winner" = 'Aitor González' |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the amount of name , and group by attribute name, and rank from high to low by the bars please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC |
how many total international races did german silva place in the top 3 spots ? | CREATE TABLE table_203_245 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT COUNT("competition") FROM table_203_245 WHERE "position" <= 3 |
How many Points against has Tries for smaller than 14, and a Team of llanelli? | CREATE TABLE table_name_13 (
points_against INTEGER,
tries_for VARCHAR,
team VARCHAR
) | SELECT AVG(points_against) FROM table_name_13 WHERE tries_for < 14 AND team = "llanelli" |
How many losses have byes greater than 2? | CREATE TABLE table_42494 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT COUNT("Losses") FROM table_42494 WHERE "Byes" > '2' |
What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein? | CREATE TABLE table_23177573_1 (
rank__week_ VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
) | SELECT rank__week_ FROM table_23177573_1 WHERE written_by = "Thomas L. Moran" AND directed_by = "Andrew Bernstein" |
tell me the number of left fielders on the list . | CREATE TABLE table_204_486 (
id number,
"name" text,
"season(s)" text,
"position(s)" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_486 WHERE "position(s)" = 'left fielder' |
What is the percentage for Brown when the lead margin is 26? | CREATE TABLE table_name_35 (
republican VARCHAR,
lead_margin VARCHAR
) | SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26 |
What's the record of the UCS 2 - Battle at the Barn when the round was n/a? | CREATE TABLE table_43820 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | SELECT "Record" FROM table_43820 WHERE "Round" = 'n/a' AND "Event" = 'ucs 2 - battle at the barn' |
What was the aggregate for the match with a team 2 of Kenya? | CREATE TABLE table_42675 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Agg." FROM table_42675 WHERE "Team 2" = 'kenya' |
Which Score has a Set 1 of 25 16? | CREATE TABLE table_44506 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Score" FROM table_44506 WHERE "Set 1" = '25–16' |
What was the department that got $626,798 in local investments? | CREATE TABLE table_17118006_2 (
department VARCHAR,
local_investment__us$_ VARCHAR
) | SELECT department FROM table_17118006_2 WHERE local_investment__us$_ = "626,798" |
Of the players whose lead began at the australian championships, what was the shortest span of years led? | CREATE TABLE table_23408094_14 (
span_of_years_led INTEGER,
tournament_at_which_lead_began VARCHAR
) | SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships" |
What is week 5 when week 2 is 36.80, and week 4 is 39.75? | CREATE TABLE table_59381 (
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text,
"Week 6" text,
"Week 7" text
) | SELECT "Week 5" FROM table_59381 WHERE "Week 2" = '36.80' AND "Week 4" = '39.75' |
What was the series in season 2009? | CREATE TABLE table_name_61 (
series VARCHAR,
season VARCHAR
) | SELECT series FROM table_name_61 WHERE season = 2009 |
The EPT German open was won by which listed winner? | CREATE TABLE table_70219 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | SELECT "Winner" FROM table_70219 WHERE "Event" = 'ept german open' |
WHAT POSITION DOES PATRICK WIERCIOCH PLAY? | CREATE TABLE table_11803648_17 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_11803648_17 WHERE player = "Patrick Wiercioch" |
What is the McCain vote percentage in Jerome county? | CREATE TABLE table_20684390_1 (
mccain_percentage VARCHAR,
county VARCHAR
) | SELECT mccain_percentage FROM table_20684390_1 WHERE county = "Jerome" |
What is the average total in 1969? | CREATE TABLE table_78906 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT AVG("Total") FROM table_78906 WHERE "Year(s) won" = '1969' |
what is the last competition they competed in ? | CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
) | SELECT "competition" FROM table_203_269 ORDER BY id DESC LIMIT 1 |
Who was the winner when the runner-up was Chemnitzer FC II? | CREATE TABLE table_name_86 (
winners VARCHAR,
runners_up VARCHAR
) | SELECT winners FROM table_name_86 WHERE runners_up = "chemnitzer fc ii" |
What is the date when Richmond was the home team? | CREATE TABLE table_10432 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_10432 WHERE "Home team" = 'richmond' |
Where was the location for Arras Paul Arras? | CREATE TABLE table_7194 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Location" text
) | SELECT "Location" FROM table_7194 WHERE "Opponent" = 'arras paul arras' |
What Opponents in the final had a match in 1984 with a Score in the final of 7 6, 6 1? | CREATE TABLE table_7192 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Opponents in the final" FROM table_7192 WHERE "Date" = '1984' AND "Score in the final" = '7–6, 6–1' |
Name the player with 238 hits and years after 1885 | CREATE TABLE table_80109 (
"Hits" real,
"Player" text,
"Team" text,
"Year" real,
"Years Record Stood" text
) | SELECT "Player" FROM table_80109 WHERE "Year" > '1885' AND "Hits" = '238' |
What party does the incumbent from the Ohio 20 district belong to? | CREATE TABLE table_1342218_35 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1342218_35 WHERE district = "Ohio 20" |
What is the line of the station in Toolamba that is currently demolished and closed in the late 1970s? | CREATE TABLE table_14710 (
"Name" text,
"Line" text,
"Location" text,
"Closed" text,
"Current Status" text
) | SELECT "Line" FROM table_14710 WHERE "Current Status" = 'demolished' AND "Closed" = 'late 1970s' AND "Location" = 'toolamba' |
What is Ryan McCay's speed that has a rank better than 8? | CREATE TABLE table_name_65 (
speed VARCHAR,
rank VARCHAR,
rider VARCHAR
) | SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay" |
Tell me the track that has the catalogue of apbo 0280 | CREATE TABLE table_78059 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
) | SELECT "Track" FROM table_78059 WHERE "Catalogue" = 'apbo 0280' |
what is the record where the opponent is central connecticut? | CREATE TABLE table_73538 (
"Date" text,
"Opponent" text,
"Location" text,
"Irish Points" real,
"Opp. Points" real,
"Record" text
) | SELECT "Record" FROM table_73538 WHERE "Opponent" = 'Central Connecticut' |
How many grids have a Time/Retired of gearbox, and Laps smaller than 3? | CREATE TABLE table_name_98 (
grid VARCHAR,
time_retired VARCHAR,
laps VARCHAR
) | SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3 |
What is shown for Austria when Croatia shows Ireland? | CREATE TABLE table_6640 (
"102." real,
"28 February" text,
"Friendly" text,
"Croatia" text,
"Austria" text
) | SELECT "Austria" FROM table_6640 WHERE "Croatia" = 'ireland' |
who has the most number of affiliates ? | CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
) | SELECT "network name" FROM table_204_796 ORDER BY "affiliates" DESC LIMIT 1 |
For each payment method, return how many customers use it. | CREATE TABLE customers (
payment_method_code VARCHAR
) | SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code |
Who has less than 3 lanes for France? | CREATE TABLE table_13901 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_13901 WHERE "Nationality" = 'france' AND "Lane" < '3' |
What is the Chassis of the Honda Engine with a Motorola sponsor? | CREATE TABLE table_50547 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tire" text,
"Sponsor" text
) | SELECT "Chassis" FROM table_50547 WHERE "Engine" = 'honda' AND "Sponsor" = 'motorola' |
What kind of Silver has a Nation of norway and a Gold smaller than 3? | CREATE TABLE table_7670 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Silver") FROM table_7670 WHERE "Nation" = 'norway' AND "Gold" < '3' |
What driver has 5 as the zan 2? | CREATE TABLE table_name_69 (
driver VARCHAR,
zan_2 VARCHAR
) | SELECT driver FROM table_name_69 WHERE zan_2 = "5" |
On what date was the opponent Ayr United, the result 1 0, and the attendance more than 668? | CREATE TABLE table_name_17 (
date VARCHAR,
opponent VARCHAR,
result VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united" |
Tell me the pick for pittsburgh penguins | CREATE TABLE table_name_12 (
pick VARCHAR,
nhl_team VARCHAR
) | SELECT pick FROM table_name_12 WHERE nhl_team = "pittsburgh penguins" |
At a longitude of 321.9e, what is the latitude of the features found? | CREATE TABLE table_72811 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
) | SELECT "Latitude" FROM table_72811 WHERE "Longitude" = '321.9E' |
How tall is the building built in 1985 with 22 floors? | CREATE TABLE table_name_44 (
height_ft__m_ VARCHAR,
floors VARCHAR,
year VARCHAR
) | SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1985 |
systolic blood pressure ( supine ) >= 100 mmhg; | CREATE TABLE table_train_83 (
"id" int,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"iq" int,
"geriatric_depression_scale_gds" int,
"NOUSE" float
) | SELECT * FROM table_train_83 WHERE systolic_blood_pressure_sbp >= 100 |
What is the incumbent for pennsylvania 15 | CREATE TABLE table_1342013_37 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_1342013_37 WHERE district = "Pennsylvania 15" |
How low was the attendance at the game that ended with a home team score of 16.13 (109)? | CREATE TABLE table_53782 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_53782 WHERE "Home team score" = '16.13 (109)' |
Which state is Tehachapi Pass Wind Farm located in? | CREATE TABLE table_56499 (
"Wind farm" text,
"Capacity (MW)" real,
"Country" text,
"State/Province" text,
"Notes" text
) | SELECT "State/Province" FROM table_56499 WHERE "Wind farm" = 'tehachapi pass wind farm' |
What date was the Izmir Cup in which lhan played against Somdev Devvarman? | CREATE TABLE table_60743 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Date" FROM table_60743 WHERE "Tournament" = 'izmir cup' AND "Opponent" = 'somdev devvarman' |
Who was the director of the episode originally aired on 26 October 1969? | CREATE TABLE table_19324 (
"Episode no." real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Air Date (ATV)" text,
"Production no." real
) | SELECT "Director" FROM table_19324 WHERE "Original Air Date (ATV)" = '26 October 1969' |
What is the team #1 that has unics kazan for team #2? | CREATE TABLE table_name_97 (
team__number1 VARCHAR,
team__number2 VARCHAR
) | SELECT team__number1 FROM table_name_97 WHERE team__number2 = "unics kazan" |
Visualize a bar chart about the distribution of Nationality and the amount of Nationality , and group by attribute Nationality. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality |
What is the silver when the Total is 1, and Gold is 1? | CREATE TABLE table_64128 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_64128 WHERE "Total" = '1' AND "Gold" = '1' |
which project had greatest number of platforms ? | CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
) | SELECT "title" FROM table_204_398 ORDER BY "platforms" DESC LIMIT 1 |
What is the average Wins, when Points is less than '19'? | CREATE TABLE table_name_32 (
wins INTEGER,
points INTEGER
) | SELECT AVG(wins) FROM table_name_32 WHERE points < 19 |
In Tie #18, who was the away team? | CREATE TABLE table_name_76 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_76 WHERE tie_no = "18" |
Visualize a bar chart about the distribution of meter_600 and ID , display by the Y in asc. | 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 swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT meter_600, ID FROM swimmer ORDER BY ID |
What are the distinct secretary votes in the fall election cycle? | CREATE TABLE VOTING_RECORD (
Secretary_Vote VARCHAR,
ELECTION_CYCLE VARCHAR
) | SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall" |
who the reader of title department x? | CREATE TABLE table_23589 (
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
) | SELECT "Reader" FROM table_23589 WHERE "Title" = 'Department X' |
What is the total number of Wins, when Draws is less than 2? | CREATE TABLE table_name_48 (
wins VARCHAR,
draws INTEGER
) | SELECT COUNT(wins) FROM table_name_48 WHERE draws < 2 |
Tell me the college that paul davis went to | CREATE TABLE table_54857 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "College" FROM table_54857 WHERE "Player" = 'paul davis' |
head trauma with a glasgow come score ( gcs ) less or equal to 5 | CREATE TABLE table_train_63 (
"id" int,
"immune_suppression" bool,
"leukocyte_count" int,
"need_hemodialysis" bool,
"head_injury" bool,
"periodic_paralysis" bool,
"renal_disease" bool,
"glasgow_come_score_gcs" int,
"sepsis" bool,
"pancreatitis" bool,
"enteral_feeding" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_63 WHERE head_injury = 1 AND glasgow_come_score_gcs <= 5 |
What's the record when the attendance was 41,573? | CREATE TABLE table_77731 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_77731 WHERE "Attendance" = '41,573' |
what is the wins when the f/laps is test driver and team is lotus racing? | CREATE TABLE table_name_20 (
wins VARCHAR,
f_laps VARCHAR,
team VARCHAR
) | SELECT wins FROM table_name_20 WHERE f_laps = "test driver" AND team = "lotus racing" |
Which manucfaturer's type was 2-6-0? | CREATE TABLE table_name_68 (
manufacturer VARCHAR,
type VARCHAR
) | SELECT manufacturer FROM table_name_68 WHERE type = "2-6-0" |
What is Winner, when Location is Connie Mack Stadium, and when Year is 1946? | CREATE TABLE table_8928 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Location" text
) | SELECT "Winner" FROM table_8928 WHERE "Location" = 'connie mack stadium' AND "Year" = '1946' |
find the names of people who are taller than 200 or lower than 190. | CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
) | SELECT name FROM people WHERE height > 200 OR height < 190 |
What is the score for Milwaukee? | CREATE TABLE table_21362 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_21362 WHERE "Team" = 'Milwaukee' |
How many games had an assist number greater than 54? | CREATE TABLE table_name_54 (
games INTEGER,
assist INTEGER
) | SELECT SUM(games) FROM table_name_54 WHERE assist > 54 |
What is the 2008 result when 2012 and 2005 are both QF? | CREATE TABLE table_name_67 (
Id VARCHAR
) | SELECT 2008 FROM table_name_67 WHERE 2012 = "qf" AND 2005 = "qf" |
In what Year was the Game on September 26? | CREATE TABLE table_46974 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | SELECT SUM("Year") FROM table_46974 WHERE "Date" = 'september 26' |
what is the tournament on august 17, 2008? | CREATE TABLE table_name_14 (
tournament VARCHAR,
date VARCHAR
) | SELECT tournament FROM table_name_14 WHERE date = "august 17, 2008" |
Who was the home team when the away team was Footscray? | CREATE TABLE table_53738 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_53738 WHERE "Away team" = 'footscray' |
When was the show first aired that was viewed by 3.57 million U.S. viewers? | CREATE TABLE table_17137 (
"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 "Original air date" FROM table_17137 WHERE "U.S. viewers (millions)" = '3.57' |
Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW? | CREATE TABLE table_name_85 (
turbine_vendor VARCHAR,
wind_farm VARCHAR,
size__mw_ VARCHAR,
turbines VARCHAR,
county VARCHAR
) | SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = "donegal" AND size__mw_ = "0.85" AND wind_farm = "meenadreen" |
Candidate of riikka manner has how many votes? | CREATE TABLE table_5763 (
"Candidate" text,
"Party" text,
"Votes" text,
"Quotient" text,
"Municipality" text
) | SELECT "Votes" FROM table_5763 WHERE "Candidate" = 'riikka manner' |
What was built in a class with less than 10, and the Downer Rail owner? | CREATE TABLE table_51104 (
"Owner" text,
"Class" text,
"Number in class" real,
"Road numbers" text,
"Built" text
) | SELECT "Built" FROM table_51104 WHERE "Number in class" < '10' AND "Owner" = 'downer rail' |
What is the total number of clubs? | CREATE TABLE club (
club_id number,
name text,
region text,
start_year text
)
CREATE TABLE competition_result (
competition_id number,
club_id_1 number,
club_id_2 number,
score text
)
CREATE TABLE competition (
competition_id number,
year number,
competition_type text,
country text
)
CREATE TABLE club_rank (
rank number,
club_id number,
gold number,
silver number,
bronze number,
total number
)
CREATE TABLE player (
player_id number,
name text,
position text,
club_id number,
apps number,
tries number,
goals text,
points number
) | SELECT COUNT(*) FROM club |
What was the highest points on October 12, when the attendance where is over 10,701? | CREATE TABLE table_43705 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT MAX("Points") FROM table_43705 WHERE "Date" = 'october 12' AND "Attendance" > '10,701' |
What is the total enrollment for the school in garden city, new york? | CREATE TABLE table_1969634_1 (
enrollment VARCHAR,
location VARCHAR
) | SELECT enrollment FROM table_1969634_1 WHERE location = "Garden City, New York" |
what airline has the same scheduled aircraft as beaver aviation/bas airlines ? | CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
) | SELECT "airline" FROM table_204_215 WHERE "airline" <> 'beaver aviation / bas airlines' AND "aircraft scheduled" = (SELECT "aircraft scheduled" FROM table_204_215 WHERE "airline" = 'beaver aviation / bas airlines') |