instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
Who is the Incumbent that has a District of ohio 13 in Democratic Party? | CREATE TABLE table_36730 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) | SELECT "Incumbent" FROM table_36730 WHERE "District" = 'ohio 13' |
What county is associated with ansi code 1759686? | CREATE TABLE table_22476 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT "County" FROM table_22476 WHERE "ANSI code" = '1759686' |
How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold? | CREATE TABLE table_80452 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Silver") FROM table_80452 WHERE "Bronze" > '3' AND "Gold" = '16' |
What was the score for the game when the record was 37-27? | CREATE TABLE table_2855 (
"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_2855 WHERE "Record" = '37-27' |
What is the highest Laps, when Bike is 'Yamaha YZF-R1', when Rider is 'David Checa', and when Grid is greater than 18? | CREATE TABLE table_59552 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT MAX("Laps") FROM table_59552 WHERE "Bike" = 'yamaha yzf-r1' AND "Rider" = 'david checa' AND "Grid" > '18' |
Which event was held at Manly Beach? | CREATE TABLE table_name_20 (
event VARCHAR,
location VARCHAR
) | SELECT event FROM table_name_20 WHERE location = "manly beach" |
Who had more than 3 wins? | CREATE TABLE table_10510 (
"Season" text,
"Winner" text,
"Team" text,
"Position" text,
"Win #" real
) | SELECT "Winner" FROM table_10510 WHERE "Win #" > '3' |
What was the attendance during the week 1 match? | CREATE TABLE table_32927 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Attendance" FROM table_32927 WHERE "Week" = '1' |
What language was spoken in Everlasting Moments? | CREATE TABLE table_18994724_1 (
language_s_ VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Everlasting Moments" |
How many yards did kevin swayne average, with a long carry over 7? | CREATE TABLE table_57991 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) | SELECT MIN("Avg.") FROM table_57991 WHERE "Player" = 'kevin swayne' AND "Long" > '7' |
On what Date will the Argentina F17 Futures Tournament be played in Argentina? | CREATE TABLE table_54506 (
"Tournament" text,
"Date" text,
"City" text,
"Country" text,
"Surface" text,
"Singles champions" text
) | SELECT "Date" FROM table_54506 WHERE "Country" = 'argentina' AND "Tournament" = 'argentina f17 futures' |
Who was the winner when the runner-up was Chemnitzer FC II? | CREATE TABLE table_10826 (
"Date" text,
"Stadium" text,
"Winners" text,
"Runners-up" text,
"Score" text,
"Attendance" real
) | SELECT "Winners" FROM table_10826 WHERE "Runners-up" = 'chemnitzer fc ii' |
What is the points gained of the match where fans took 403 [sunday]? | CREATE TABLE table_name_36 (
points_gained INTEGER,
fans_took VARCHAR
) | SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]" |
Who is the Away captain that played on 11,12,13 Aug 1902? | CREATE TABLE table_42818 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Away captain" FROM table_42818 WHERE "Date" = '11,12,13 aug 1902' |
What is the position of player Tobias Lindberg? | CREATE TABLE table_11803648_22 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_11803648_22 WHERE player = "Tobias Lindberg" |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and manufacturer , and group by attribute founder, and could you sort by the bar in asc? | 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 T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name |
WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE? | CREATE TABLE table_name_62 (
pick INTEGER,
overall VARCHAR,
college VARCHAR
) | SELECT SUM(pick) FROM table_name_62 WHERE overall > 250 AND college = "florida" |
What is the region where Milan is located? | CREATE TABLE table_19387 (
"Region" text,
"Capital" text,
"Area (km\u00b2)" real,
"Area (sq mi)" real,
"Population" real
) | SELECT "Region" FROM table_19387 WHERE "Capital" = 'Milan' |
What is the nationality of the forward position on the Grizzlies in 2011? | CREATE TABLE table_48320 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_48320 WHERE "Position" = 'forward' AND "Years for Grizzlies" = '2011' |
What school/club had pick 33? | CREATE TABLE table_name_31 (
school_club_team VARCHAR,
pick VARCHAR
) | SELECT school_club_team FROM table_name_31 WHERE pick = 33 |
What are all of the area where distance is marathon and month held is february | CREATE TABLE table_28344 (
"Road race" text,
"Distance" text,
"Location" text,
"Country" text,
"Month held" text
) | SELECT "Location" FROM table_28344 WHERE "Distance" = 'Marathon' AND "Month held" = 'February' |
What is the score for Hawthorn as an away team? | CREATE TABLE table_32732 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32732 WHERE "Away team" = 'hawthorn' |
Which year has an Organization of new york yankees, and a Team of johnson city yankees? | CREATE TABLE table_name_61 (
year VARCHAR,
organization VARCHAR,
team VARCHAR
) | SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees" |
Which position does Robert Nkemdiche play? | CREATE TABLE table_55870 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Position" FROM table_55870 WHERE "Player" = 'robert nkemdiche' |
Tell me the format for worldwide region july 22, 2008 | CREATE TABLE table_4335 (
"Region" text,
"Date" text,
"Format" text,
"Label" text,
"Edition(s)" text
) | SELECT "Format" FROM table_4335 WHERE "Region" = 'worldwide' AND "Date" = 'july 22, 2008' |
What vehicle has an epa highway fuel economy of 109 mpg-e? | CREATE TABLE table_20549371_3 (
vehicle VARCHAR,
epa_rated_highway_fuel_economy VARCHAR
) | SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e" |
What was the Average Attendance during the Year in which there were 9 Home Games? | CREATE TABLE table_name_12 (
average_attendance INTEGER,
_number_of_home_games VARCHAR
) | SELECT MAX(average_attendance) FROM table_name_12 WHERE _number_of_home_games = 9 |
What position did the player from Rice College play who was picked under 15? | CREATE TABLE table_name_24 (
position VARCHAR,
pick VARCHAR,
college VARCHAR
) | SELECT position FROM table_name_24 WHERE pick < 15 AND college = "rice" |
What is the Branding for the station located in Zamboanga? | CREATE TABLE table_name_25 (
branding VARCHAR,
location VARCHAR
) | SELECT branding FROM table_name_25 WHERE location = "zamboanga" |
Which Film has a Result of nominated, and a Year of 2001? | CREATE TABLE table_35213 (
"Year" real,
"Group" text,
"Award" text,
"Film" text,
"Result" text
) | SELECT "Film" FROM table_35213 WHERE "Result" = 'nominated' AND "Year" = '2001' |
what is the total amount of medals spain has won ? | CREATE TABLE table_203_535 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "total" FROM table_203_535 WHERE "nation" = 'spain' |
was attendance higher week 4 or week 8 ? | CREATE TABLE table_203_790 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
) | SELECT "week" FROM table_203_790 WHERE "week" IN (4, 8) ORDER BY "attendance" DESC LIMIT 1 |
What was the NFL Recap of the game held on December 24, 2005? | CREATE TABLE table_14549 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"NFL Recap" text,
"Record" text,
"Attendance" text
) | SELECT "NFL Recap" FROM table_14549 WHERE "Date" = 'december 24, 2005' |
creatinine clearance < 60 by cockcroft _ gault calculator | CREATE TABLE table_dev_58 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"intra_aortic_balloon_pump_iabp" bool,
"systemic_arterial_po2" int,
"creatinine_clearance_cl" float,
"supplemental_oxygen" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_dev_58 WHERE creatinine_clearance_cl < 60 |
What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3? | CREATE TABLE table_62241 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_62241 WHERE "Bronze" < '7' AND "Gold" > '0' AND "Total" > '7' AND "Silver" < '3' |
What were the total number of points when the amount of goals scored was less than 20? | CREATE TABLE table_name_39 (
points VARCHAR,
goals_scored INTEGER
) | SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 20 |
What is the name of the race when Lineth Chepkurui is the athlete? | CREATE TABLE table_name_17 (
race VARCHAR,
athlete VARCHAR
) | SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui" |
what is the average attendance per match wheree the elevation is 1500 m? | CREATE TABLE table_29765 (
"Stadium" text,
"City" text,
"Capacity" real,
"Matches played" real,
"Overall attendance" real,
"Average attendance per match" real,
"Average attendance as % of Capacity" text,
"Overall goals scored" real,
"Average goals scored per match" text,
"Elevation" text
) | SELECT "Average attendance per match" FROM table_29765 WHERE "Elevation" = '1500 m' |
How many losses did the team with 22 goals for andmore than 8 games played have? | CREATE TABLE table_78521 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | SELECT COUNT("Losses") FROM table_78521 WHERE "Goals For" = '22' AND "Games Played" > '8' |
What is the alternate title/translation of the series that premiered on December 12, 2006? | CREATE TABLE table_11023 (
"Country" text,
"Alternate title/Translation" text,
"TV network(s)" text,
"Series premiere" text,
"Weekly schedule" text
) | SELECT "Alternate title/Translation" FROM table_11023 WHERE "Series premiere" = 'december 12, 2006' |
What are the candidates in the district whose incumbent is Gus Yatron? | CREATE TABLE table_1341604_39 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_1341604_39 WHERE incumbent = "Gus Yatron" |
Can you tell me the Money ( ) that has the Country of england, and the Player of malcolm mackenzie? | CREATE TABLE table_12680 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Money ( \u00a3 )" FROM table_12680 WHERE "Country" = 'england' AND "Player" = 'malcolm mackenzie' |
On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8? | CREATE TABLE table_name_74 (
dvd_release_date VARCHAR,
season VARCHAR,
episodes VARCHAR
) | SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13 |
Who is the Arkansas player associated with Ken Stabler? | CREATE TABLE table_80223 (
"Year" real,
"Alabama" text,
"Arkansas" text,
"Auburn" text,
"Ole Miss" text,
"Mississippi St." text
) | SELECT "Arkansas" FROM table_80223 WHERE "Alabama" = 'ken stabler' |
what was the date of the last game ? | CREATE TABLE table_203_793 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT "date" FROM table_203_793 ORDER BY "date" DESC LIMIT 1 |
Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin | CREATE TABLE table_19598014_2 (
gt2_winning_team VARCHAR,
lmp2_winning_team VARCHAR
) | SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = "Butch Leitzinger Marino Franchitti Ben Devlin" |
What is the control type which was founded in 1818? | CREATE TABLE table_23906 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Accreditation" text,
"Founded" text,
"Enrollment" text
) | SELECT "Control" FROM table_23906 WHERE "Founded" = '1818' |
Name the gdp world rank for asian rank being 20 | CREATE TABLE table_2249029_1 (
gdp_world_rank VARCHAR,
asian_rank VARCHAR
) | SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 20 |
How many runner ups were there for the cologne , germany carpet $75,000 s32/d16 when the champion was matt doyle 1 6, 6 1, 6 2? | CREATE TABLE table_29296103_10 (
runner_up VARCHAR,
tournament VARCHAR,
champion VARCHAR
) | SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet β $75,000 β S32/D16" AND champion = "Matt Doyle 1β6, 6β1, 6β2" |
What was the total score where Toronto was played? | CREATE TABLE table_name_71 (
game INTEGER,
team VARCHAR
) | SELECT SUM(game) FROM table_name_71 WHERE team = "toronto" |
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? | CREATE TABLE table_7056 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_7056 WHERE "Total" < '3' AND "Rank" = '5' AND "Silver" > '1' |
What district has a constituency of 60? | CREATE TABLE table_name_27 (
district VARCHAR,
constituency_number VARCHAR
) | SELECT district FROM table_name_27 WHERE constituency_number = "60" |
What is the total number of ends when the transfer fee was dkk 14m? | CREATE TABLE table_name_80 (
ends VARCHAR,
transfer_fee VARCHAR
) | SELECT COUNT(ends) FROM table_name_80 WHERE transfer_fee = "dkk 14m" |
What is the Rank of the player with 158 Goals in more than 362 Matches? | CREATE TABLE table_name_85 (
rank VARCHAR,
goals VARCHAR,
matches VARCHAR
) | SELECT COUNT(rank) FROM table_name_85 WHERE goals = 158 AND matches > 362 |
What is the main presenter of bulgaria? | CREATE TABLE table_1053802_1 (
main_presenters VARCHAR,
region_country VARCHAR
) | SELECT main_presenters FROM table_1053802_1 WHERE region_country = "Bulgaria" |
When did the score of 2-0 take place? | CREATE TABLE table_name_29 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_29 WHERE score = "2-0" |
how many teams won at golf when wooster won soccer | CREATE TABLE table_16423070_4 (
golf VARCHAR,
soccer VARCHAR
) | SELECT COUNT(golf) FROM table_16423070_4 WHERE soccer = "Wooster" |
Which to par has a prize less than $800? | CREATE TABLE table_name_10 (
to_par VARCHAR,
money___$__ VARCHAR
) | SELECT to_par FROM table_name_10 WHERE money___$__ = 800 |
What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751? | CREATE TABLE table_5188 (
"Maryland Counties" text,
"Fall 05" real,
"Fall 06" real,
"Fall 07" real,
"Fall 08" real,
"Fall 09" real
) | SELECT SUM("Fall 09") FROM table_5188 WHERE "Maryland Counties" = 'allegany' AND "Fall 07" < '751' |
What yacht did Andrew Saies sail on? | CREATE TABLE table_25561560_3 (
yacht VARCHAR,
skipper VARCHAR
) | SELECT yacht FROM table_25561560_3 WHERE skipper = "Andrew Saies" |
What is the c (nf/km) when the r ( /km) is 463.59? | CREATE TABLE table_261642_3 (
c__nf_km_ VARCHAR,
r__Ο_km_ VARCHAR
) | SELECT c__nf_km_ FROM table_261642_3 WHERE r__Ο_km_ = "463.59" |
who died first : sala burton or harold earthman ? | CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
) | SELECT "representative" FROM table_204_145 WHERE "representative" IN ('sala burton', 'harold earthman') ORDER BY "date of death" LIMIT 1 |
Show all student ids who are older than 20. | CREATE TABLE Student (
StuID VARCHAR,
age INTEGER
) | SELECT StuID FROM Student WHERE age > 20 |
Name the centennial for 1992 akimel | CREATE TABLE table_20446 (
"Information" text,
"Akimel A-al The name is Tohono Oodham for children of the river" text,
"Altade\u00f1a" text,
"Aprende" text,
"Centennial" text,
"Kyrene MS" text,
"del Pueblo" text
) | SELECT "Centennial" FROM table_20446 WHERE "Akimel A-al The name is Tohono Oodham for children of the river" = '1992' |
how many aired in may ? | CREATE TABLE table_204_958 (
id number,
"episode" number,
"original broadcast date" text,
"average" number,
"rank" number,
"remarks" text
) | SELECT COUNT(*) FROM table_204_958 WHERE "original broadcast date" = 5 |
what is the most weeks on chart when the peak position is less than 5 and from Sweden? | CREATE TABLE table_79845 (
"Title" text,
"Album" text,
"Country" text,
"Peak position" real,
"Weeks on chart" real
) | SELECT MAX("Weeks on chart") FROM table_79845 WHERE "Peak position" < '5' AND "Country" = 'sweden' |
How many numbers were listed under Silver Medals for Portsmouth HS? | CREATE TABLE table_17965 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
) | SELECT COUNT("Silver Medals") FROM table_17965 WHERE "Ensemble" = 'Portsmouth HS' |
What studio has the director Philip Frank Messina? | CREATE TABLE table_name_71 (
studio_s_ VARCHAR,
director VARCHAR
) | SELECT studio_s_ FROM table_name_71 WHERE director = "philip frank messina" |
Who won the Men's Double the same year as Florentina Petre winning the Women's Singles? | CREATE TABLE table_80134 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Men's doubles" FROM table_80134 WHERE "Women's singles" = 'florentina petre' |
When was the audio book with target number 069 69 released? | CREATE TABLE table_20174050_1 (
release_date VARCHAR,
target__number VARCHAR
) | SELECT release_date FROM table_20174050_1 WHERE target__number = "069 69" |
Which Player has a Score of 67 in united states? | CREATE TABLE table_60737 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Player" FROM table_60737 WHERE "Score" = '67' AND "Country" = 'united states' |
Bar chart x axis event details y axis how many event details, sort Y-axis in desc order. | CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
) | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY COUNT(Event_Details) DESC |
On what date was the record 4 0 0? | CREATE TABLE table_5620 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_5620 WHERE "Record" = '4β0β0' |
What is the Density that has a Population larger than 290,458, and an Area of 91.6? | CREATE TABLE table_42486 (
"Rank" real,
"Province" text,
"Population" real,
"Area" real,
"Density" real
) | SELECT SUM("Density") FROM table_42486 WHERE "Population" > '290,458' AND "Area" = '91.6' |
Which 7:00 has an 8:00 of la soir e du hockey? | CREATE TABLE table_37294 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text,
"10:30" text
) | SELECT "7:00" FROM table_37294 WHERE "8:00" = 'la soirΓ©e du hockey' |
what country won the same number of bronze as great britain , yet did not win a gold medal ? | CREATE TABLE table_203_206 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_206 WHERE "nation" <> 'great britain' AND "bronze" = (SELECT "bronze" FROM table_203_206 WHERE "nation" = 'great britain') AND "gold" = 0 |
What is the second leg for Team 1 Servette? | CREATE TABLE table_60354 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_60354 WHERE "Team 1" = 'servette' |
What was the essendon score when they were at home? | CREATE TABLE table_name_25 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_25 WHERE home_team = "essendon" |
How many people were pick #30? | CREATE TABLE table_10812403_4 (
position VARCHAR,
pick__number VARCHAR
) | SELECT COUNT(position) FROM table_10812403_4 WHERE pick__number = 30 |
Show all male student ids who don't play football. | CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT stuid FROM student WHERE sex = 'M' EXCEPT SELECT stuid FROM sportsinfo WHERE sportname = "Football" |
What was the result for the Outstanding director of a musical category? | CREATE TABLE table_41381 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Result" FROM table_41381 WHERE "Category" = 'outstanding director of a musical' |
who served a term before mannerheim ? | CREATE TABLE table_204_488 (
id number,
"order in\nposition" number,
"president of\nthe republic" text,
"length of\nthe presidential\naction" text,
"rank by\nlength\nof term(s)" number,
"notes" text
) | SELECT "president of\nthe republic" FROM table_204_488 WHERE "order in\nposition" < (SELECT "order in\nposition" FROM table_204_488 WHERE "president of\nthe republic" = 'gustaf mannerheim') ORDER BY "order in\nposition" DESC LIMIT 1 |
Find names and ids of all documents with document type code BK. | CREATE TABLE Documents (
document_name VARCHAR,
document_id VARCHAR,
document_type_code VARCHAR
) | SELECT document_name, document_id FROM Documents WHERE document_type_code = "BK" |
Which author is located in Mexico? | CREATE TABLE table_40087 (
"Name" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
) | SELECT "Authors" FROM table_40087 WHERE "Location" = 'mexico' |
which game did the opponent score only 7 points ? | CREATE TABLE table_203_158 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT "date" FROM table_203_158 WHERE "result" = 7 |
If the director is Yannick Bisson, what was the Canadian amount of viewers? | CREATE TABLE table_3359 (
"Total" real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"UK air date" text,
"Canadian Viewers (millions)" text
) | SELECT COUNT("Canadian Viewers (millions)") FROM table_3359 WHERE "Directed by" = 'Yannick Bisson' |
What was Jack McGrath's finish number in 1954? | CREATE TABLE table_name_95 (
finish VARCHAR,
year VARCHAR
) | SELECT finish FROM table_name_95 WHERE year = "1954" |
Who had the women's win when Norway was the winner overall in season 2001/02? | CREATE TABLE table_name_68 (
winner VARCHAR,
season VARCHAR
) | SELECT winner AS Women FROM table_name_68 WHERE winner = "norway" AND season = "2001/02" |
For the 2nd string of Do and an Accord du 1st string of FA what is the Depart de la main gauche? | CREATE TABLE table_76895 (
"Mode" text,
"D\u00e9part de la main gauche" text,
"Accord du 1st string" text,
"2nd string" text,
"3rd string" text
) | SELECT "D\u00e9part de la main gauche" FROM table_76895 WHERE "2nd string" = 'do' AND "Accord du 1st string" = 'fa' |
what is the population where municipality is san jacinto? | CREATE TABLE table_1691800_2 (
population__2010_ VARCHAR,
municipality VARCHAR
) | SELECT population__2010_ FROM table_1691800_2 WHERE municipality = "San Jacinto" |
In Winterberg, who was 3rd the year that Monique Riekewald was 2nd? | CREATE TABLE table_10757 (
"Year" real,
"Location" text,
"Champion" text,
"Second" text,
"Third" text
) | SELECT "Third" FROM table_10757 WHERE "Location" = 'winterberg' AND "Second" = 'monique riekewald' |
how many points did robbie mcewen and cristian moreni score together ? | CREATE TABLE table_202_22 (
id number,
"rank" number,
"rider" text,
"team" text,
"points" number
) | SELECT (SELECT "points" FROM table_202_22 WHERE "rider" = 'robbie mcewen') + (SELECT "points" FROM table_202_22 WHERE "rider" = 'cristian moreni') |
Name the bronze when silver is 1 | CREATE TABLE table_name_25 (
bronze VARCHAR,
silver VARCHAR
) | SELECT bronze FROM table_name_25 WHERE silver = 1 |
How many total points did Oisin McConville have from his 5 matches? | CREATE TABLE table_63037 (
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
) | SELECT COUNT("Total") FROM table_63037 WHERE "Player" = 'oisin mcconville' AND "Matches" < '5' |
Record of 92 70 had what date? | CREATE TABLE table_name_70 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_70 WHERE record = "92β70" |
Name the birth of the person married 24 may 1935 | CREATE TABLE table_68311 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Spouse" text
) | SELECT "Birth" FROM table_68311 WHERE "Marriage" = '24 may 1935' |
Which against has 14 losses? | CREATE TABLE table_12496 (
"Lexton Plains" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT "Against" FROM table_12496 WHERE "Losses" = '14' |
Show all train names and times in stations in London in descending order by train time. | CREATE TABLE train (
train_id number,
name text,
time text,
service text
)
CREATE TABLE train_station (
train_id number,
station_id number
)
CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_passengers number,
location text,
main_services text,
number_of_platforms number
) | SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC |
What is the lowest crowd when essendon is the away team? | CREATE TABLE table_name_78 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_78 WHERE away_team = "essendon" |
What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy? | CREATE TABLE table_39196 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real
) | SELECT MAX("Wins") FROM table_39196 WHERE "Season" < '2007' AND "Team" = 'silverstone motorsport academy' |
Subsets and Splits