instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What country is ranked 79?
CREATE TABLE table_name_19 ( country VARCHAR, rank VARCHAR )
SELECT country FROM table_name_19 WHERE rank = 79
What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?
CREATE TABLE table_34231 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "Long" real )
SELECT COUNT("Avg.") FROM table_34231 WHERE "Yards" > '20' AND "Player" = 'darrius heyward-bey' AND "Long" < '80'
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, and order X-axis in asc order.
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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name
Which year's rank was #4 when the country was the US?
CREATE TABLE table_76011 ( "Publication" text, "Country" text, "Accolade" text, "Year" real, "Rank" text )
SELECT "Year" FROM table_76011 WHERE "Rank" = '#4' AND "Country" = 'us'
What years have claudia ruffo as the actor?
CREATE TABLE table_65588 ( "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text )
SELECT "Years" FROM table_65588 WHERE "Actor" = 'claudia ruffo'
When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?
CREATE TABLE table_61066 ( "State" text, "City" text, "Population" real, "Violent Crime" text, "Murder and Non-Negligent Manslaughter" real, "Forcible Rape" text, "Robbery" real, "Aggravated Assault" real, "Property Crime" text, "Burglary" real, "Larceny-Theft" text, "Motor Vehicle Theft" real )
SELECT MIN("Burglary") FROM table_61066 WHERE "Population" > '832,901' AND "Murder and Non-Negligent Manslaughter" = '11.6'
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
CREATE TABLE table_20674 ( "State" text, "Preliminary Average" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Semifinal Average" text )
SELECT "Preliminary Average" FROM table_20674 WHERE "Semifinal Average" = '8.966 (3)'
What is the date when Grimsby Town is the home team?
CREATE TABLE table_8011 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Date" FROM table_8011 WHERE "Home team" = 'grimsby town'
What is the location/attendance of the game with a 3-1 record?
CREATE TABLE table_name_1 ( location_attendance VARCHAR, record VARCHAR )
SELECT location_attendance FROM table_name_1 WHERE record = "3-1"
Who were the challenge leaders of the games won by boston college (88-76)?
CREATE TABLE table_74400 ( "Date" text, "Time" text, "ACC Team" text, "Big Ten Team" text, "Location" text, "Television" text, "Attendance" real, "Winner" text, "Challenge Leader" text )
SELECT "Challenge Leader" FROM table_74400 WHERE "Winner" = 'Boston College (88-76)'
What date was gabriela paz-franco the opponent?
CREATE TABLE table_name_2 ( date VARCHAR, opponent VARCHAR )
SELECT date FROM table_name_2 WHERE opponent = "gabriela paz-franco"
which team was the first team to score six goals ?
CREATE TABLE table_203_620 ( id number, "tie no" number, "home team" text, "score" text, "away team" text, "attendance" number )
SELECT "home team" FROM table_203_620 WHERE "score" = 6 LIMIT 1
what comes after fiskeby if
CREATE TABLE table_204_361 ( id number, "tie no" number, "home team" text, "score" text, "away team" text )
SELECT "home team" FROM table_204_361 WHERE id = (SELECT id FROM table_204_361 WHERE "home team" = 'fiskeby if') + 1
what is the number of delegates younger than 20 ?
CREATE TABLE table_204_20 ( id number, "represent" text, "contestant" text, "age" number, "height" text, "hometown" text )
SELECT COUNT("contestant") FROM table_204_20 WHERE "age" < 20
What is the date of birth of the goalkeeper from the 1st season?
CREATE TABLE table_name_13 ( date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR )
SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st"
Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?
CREATE TABLE table_name_24 ( silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR )
SELECT silver FROM table_name_24 WHERE gold < 12 AND rank < 5 AND bronze = 5
How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?
CREATE TABLE table_28578 ( "Athlete" text, "Event" text, "Round of 32" text, "Round of 16" text, "Quarterfinals" text, "Semifinals" text )
SELECT COUNT("Round of 16") FROM table_28578 WHERE "Round of 32" = 'Lakpa Tashi Sherpa ( BHU ) W PTS 12-5'
which four competitions are the only competitions that occurred once ?
CREATE TABLE table_203_270 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text )
SELECT "competition" FROM table_203_270 GROUP BY "competition" HAVING COUNT(*) = 1
how many latitudes have 0.081 (sqmi) of water?
CREATE TABLE table_22459 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real )
SELECT COUNT("Latitude") FROM table_22459 WHERE "Water (sqmi)" = '0.081'
Find the student ID and personal name of the student with at least two enrollments.
CREATE TABLE Students ( personal_name VARCHAR, student_id VARCHAR ) CREATE TABLE Student_Course_Enrolment ( student_id VARCHAR )
SELECT T1.student_id, T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2
What was the attendance on 1997-12-14?
CREATE TABLE table_33015 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Attendance" text )
SELECT "Attendance" FROM table_33015 WHERE "Date" = '1997-12-14'
What is the location/state that has adelaide international raceway as the circuit?
CREATE TABLE table_name_5 ( location___state VARCHAR, circuit VARCHAR )
SELECT location___state FROM table_name_5 WHERE circuit = "adelaide international raceway"
Who was the writter for the episode identified by the production code 2t5954?
CREATE TABLE table_73966 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Patient Portrayer" text, "Original air date" text, "Production code" text )
SELECT "Written by" FROM table_73966 WHERE "Production code" = '2T5954'
In what district was Tim Holden the incumbent?
CREATE TABLE table_1341453_40 ( district VARCHAR, incumbent VARCHAR )
SELECT district FROM table_1341453_40 WHERE incumbent = "Tim Holden"
What is the Capacity of the Venue of Head Coach Ali Asghar Modir Roosta?
CREATE TABLE table_78871 ( "Team" text, "City" text, "Venue" text, "Capacity" real, "Head Coach" text, "Team Captain" text, "Past Season" text )
SELECT MAX("Capacity") FROM table_78871 WHERE "Head Coach" = 'ali asghar modir roosta'
In the county where Bush won 77.76%, how many total votes were cast?
CREATE TABLE table_13625792_1 ( total__number VARCHAR, bush__percentage VARCHAR )
SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%"
How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?
CREATE TABLE table_name_16 ( pommel_horse VARCHAR, rings VARCHAR, total VARCHAR )
SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507
What was the method for the resolution of nc where the fight lasted less than 3 rounds?
CREATE TABLE table_52239 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Method" FROM table_52239 WHERE "Round" < '3' AND "Res." = 'nc'
For which Game 4 did Michael O'Connor play during Game 1?
CREATE TABLE table_58356 ( "Position" text, "Game 1" text, "Game 2" text, "Game 3" text, "Game 4" text )
SELECT "Game 4" FROM table_58356 WHERE "Game 1" = 'michael o''connor'
What is the acceleration 1-100km/h when the name is 1.5 dci?
CREATE TABLE table_name_32 ( acceleration_0_100km_h VARCHAR, name VARCHAR )
SELECT acceleration_0_100km_h FROM table_name_32 WHERE name = "1.5 dci"
For Ynysybwl RFC, what was the losing bonus for 416 points?
CREATE TABLE table_name_48 ( losing_bonus VARCHAR, points_for VARCHAR, club VARCHAR )
SELECT losing_bonus FROM table_name_48 WHERE points_for = "416" AND club = "ynysybwl rfc"
who was the only rider with more points than doriano romboni ?
CREATE TABLE table_203_244 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number )
SELECT "rider" FROM table_203_244 WHERE "points" > (SELECT "points" FROM table_203_244 WHERE "rider" = 'doriano romboni')
Who was the batting team in the 2006 season?
CREATE TABLE table_name_61 ( batting_team VARCHAR, season VARCHAR )
SELECT batting_team FROM table_name_61 WHERE season = "2006"
Who directed episode number 18 in the series?
CREATE TABLE table_27982 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT "Directed by" FROM table_27982 WHERE "No. in series" = '18'
What kind of round was played when Hanne Skak Jensen faced Austria?
CREATE TABLE table_3277 ( "Edition" real, "Zone" text, "Round" text, "Against" text, "Surface" text, "Opponent" text, "Outcome" text, "Result" text )
SELECT "Round" FROM table_3277 WHERE "Against" = 'Austria'
How many different counts for won points does Flavia Pennetta have?
CREATE TABLE table_3813 ( "Sd" real, "Rk" real, "Player" text, "Points" real, "Points defending" text, "Points won" real, "New points" real, "Status" text )
SELECT COUNT("Points won") FROM table_3813 WHERE "Player" = 'Flavia Pennetta'
Which Year has a Binibining Pilipinas International of alma concepcion?
CREATE TABLE table_61505 ( "Year" real, "Binibining Pilipinas-Universe" text, "Binibining Pilipinas-World" text, "Binibining Pilipinas International" text, "Miss Maja Pilipinas" text, "First runner-up" text, "Second runner-up" text )
SELECT "Year" FROM table_61505 WHERE "Binibining Pilipinas International" = 'alma concepcion'
How many runs conceded for chaminda vaas?
CREATE TABLE table_15700367_6 ( runs_conceded VARCHAR, name VARCHAR )
SELECT runs_conceded FROM table_15700367_6 WHERE name = "Chaminda Vaas"
What is the place number for the player with a To Par score of 'E'?
CREATE TABLE table_name_85 ( place VARCHAR, to_par VARCHAR )
SELECT place FROM table_name_85 WHERE to_par = "e"
What's the total sum of points scored by the Brisbane Broncos?
CREATE TABLE table_name_80 ( points INTEGER, premiers VARCHAR )
SELECT SUM(points) FROM table_name_80 WHERE premiers = "brisbane broncos"
How many wins when the pct, is .848?
CREATE TABLE table_name_19 ( wins VARCHAR, pct VARCHAR )
SELECT wins FROM table_name_19 WHERE pct = ".848"
What is the total number of positions having 1 loss and more than 9 conceded?
CREATE TABLE table_14062 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real )
SELECT COUNT("Position") FROM table_14062 WHERE "Losses" = '1' AND "Conceded" > '9'
In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?
CREATE TABLE table_name_94 ( finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR )
SELECT finish FROM table_name_94 WHERE total > 284 AND to_par = "+5" AND player = "nick faldo"
What was the loss from the coyotes as opponents?
CREATE TABLE table_name_20 ( loss VARCHAR, opponent VARCHAR )
SELECT loss FROM table_name_20 WHERE opponent = "coyotes"
What was the name of the episode that had 14.52 viewers?
CREATE TABLE table_22904707_1 ( title VARCHAR, us_viewers__million_ VARCHAR )
SELECT title FROM table_22904707_1 WHERE us_viewers__million_ = "14.52"
Tell me the tournament with a hard surface for 6 1, 6 2
CREATE TABLE table_31945 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT "Tournament" FROM table_31945 WHERE "Surface" = 'hard' AND "Score" = '6–1, 6–2'
Tell me the time/retired with Laps of 47 and driver of ren arnoux
CREATE TABLE table_55675 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_55675 WHERE "Laps" = '47' AND "Driver" = 'rené arnoux'
nigeria has the most gold medals , but who has the most medals overall ?
CREATE TABLE table_203_61 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_203_61 ORDER BY "total" DESC LIMIT 1
What is the highest average that has 6 dances and a total of over 128?
CREATE TABLE table_name_15 ( average INTEGER, number_of_dances VARCHAR, total VARCHAR )
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128
What is the lowest number of losses for teams that lost 52 ends?
CREATE TABLE table_20836 ( "Locale" text, "Skip" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot %" text )
SELECT MIN("L") FROM table_20836 WHERE "Ends Lost" = '52'
What is the number range for the Gloucester RCW builder introduced in 1937?
CREATE TABLE table_name_84 ( number_range VARCHAR, builder VARCHAR, introduced VARCHAR )
SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937"
What is Left Office, when Took Office is '11 June 2001', and when Minister is 'Mirko Tremaglia'?
CREATE TABLE table_name_47 ( left_office VARCHAR, took_office VARCHAR, minister VARCHAR )
SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia"
What was the result of the singer with the top 8?
CREATE TABLE table_68960 ( "Episode" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text )
SELECT "Result" FROM table_68960 WHERE "Episode" = 'top 8'
which has the largest volume number ?
CREATE TABLE table_204_696 ( id number, "issue" number, "volume" number, "title" text, "main feature story" text, "first/early appearance story/stories" text, "release date" text )
SELECT "title" FROM table_204_696 ORDER BY "volume" DESC LIMIT 1
Bar chart x axis nationality y axis the total number, rank in desc by the x axis.
CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_Main_in_Charge bool ) CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age text ) CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, Number_of_hosts int )
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY Nationality DESC
what is x when faisaly is 0-0?
CREATE TABLE table_26173063_2 ( × VARCHAR, faisaly VARCHAR )
SELECT × FROM table_26173063_2 WHERE faisaly = "0-0"
Which team received 4 in race 1?
CREATE TABLE table_76671 ( "Driver" text, "Team" text, "Race 1" text, "Race 2" text, "Points" real )
SELECT "Team" FROM table_76671 WHERE "Race 1" = '4'
hba1c < 10 %
CREATE TABLE table_train_219 ( "id" int, "hematocrit_hct" float, "fasting_plasma_glucose" int, "hba1c" float, "urine_protein" int, "iothalamate_clearance" int, "NOUSE" float )
SELECT * FROM table_train_219 WHERE hba1c < 10
Who did Teo Fabi drive for when he won and had pole position?
CREATE TABLE table_4525 ( "Name" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text )
SELECT "Winning team" FROM table_4525 WHERE "Winning driver" = 'teo fabi' AND "Pole Position" = 'teo fabi'
Which 2007 has a 2003 of 1r?
CREATE TABLE table_41027 ( "Tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "Win %" text )
SELECT "2007" FROM table_41027 WHERE "2003" = '1r'
Who was the actor/actress with a first appearance is 3 june 2007?
CREATE TABLE table_3441 ( "Actor/Actress" text, "Character" text, "First Appearance" text, "Last Appearance" text, "Duration" text, "Total" real )
SELECT "Actor/Actress" FROM table_3441 WHERE "First Appearance" = '3 June 2007'
Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)?
CREATE TABLE table_5694 ( "Week 6 Oct 5" text, "Week 7 Oct 12" text, "Week 9 Oct 26" text, "Week 10 Nov 2" text, "Week 11 Nov 9" text, "Week 13 Nov 23" text, "Week 14 Nov 30" text, "Week 15 (Final) Dec 7" text )
SELECT "Week 14 Nov 30" FROM table_5694 WHERE "Week 6 Oct 5" = 'michigan state (5-1)'
What was the score in the year 2004?
CREATE TABLE table_name_72 ( score VARCHAR, year VARCHAR )
SELECT score FROM table_name_72 WHERE year = "2004"
Who were all the pictorials when the centerfold model was Rebekka Armstrong?
CREATE TABLE table_1566848_7 ( pictorials VARCHAR, centerfold_model VARCHAR )
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong"
What activities do we have?
CREATE TABLE Activity ( activity_name VARCHAR )
SELECT activity_name FROM Activity
when was his last competition ?
CREATE TABLE table_203_238 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT "year" FROM table_203_238 ORDER BY "year" DESC LIMIT 1
What season has a regionalliga s d league, a 1-0 home, and an away of 2-3?
CREATE TABLE table_78844 ( "Season" text, "League" text, "Teams" text, "Home" text, "Away" text )
SELECT "Season" FROM table_78844 WHERE "League" = 'regionalliga süd' AND "Home" = '1-0' AND "Away" = '2-3'
What was the result at the Berlin International Film Festival in a year greater than 1987?
CREATE TABLE table_name_80 ( result VARCHAR, year VARCHAR, awards VARCHAR )
SELECT result FROM table_name_80 WHERE year > 1987 AND awards = "berlin international film festival"
which country had the most deputy judges ?
CREATE TABLE table_204_301 ( id number, "nationality" text, "name" text, "term as a deputy judge" text, "reason for termination" text )
SELECT "nationality" FROM table_204_301 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1
What country was the golfer with a score of 72-72-72=216 representing?
CREATE TABLE table_name_78 ( country VARCHAR, score VARCHAR )
SELECT country FROM table_name_78 WHERE score = 72 - 72 - 72 = 216
What is Apogee, when Inclination is 65 , and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?
CREATE TABLE table_12858 ( "Designation" text, "Launch date/time ( GMT )" text, "Mass" text, "Apogee" text, "Inclination" text )
SELECT "Apogee" FROM table_12858 WHERE "Inclination" = '65°' AND "Launch date/time ( GMT )" = '15 february 1973, 01:11'
What is the donor payment in Belgium?
CREATE TABLE table_16175217_1 ( donor_payment VARCHAR, country VARCHAR )
SELECT donor_payment FROM table_16175217_1 WHERE country = "Belgium"
How old is the average person for each job Show bar chart, and rank total number from high to low order.
CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT )
SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) DESC
Which years had a jersey number 55
CREATE TABLE table_17156 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text )
SELECT "Years for Rockets" FROM table_17156 WHERE "No.(s)" = '55'
What is the displacement & configuration with CO2 of 204 g/km emissions?
CREATE TABLE table_46528 ( "car model" text, "displacement & configuration" text, "max. motive power @ rpm" text, "max. torque @ rpm" text, "max. speed" text, "emissions CO2" text )
SELECT "displacement & configuration" FROM table_46528 WHERE "emissions CO2" = '204 g/km'
What college was the draft pick from who plays center position?
CREATE TABLE table_49891 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text )
SELECT "College" FROM table_49891 WHERE "Position" = 'center'
When did they play Dayton?
CREATE TABLE table_27707 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Date" FROM table_27707 WHERE "Team" = 'Dayton'
What are the years of participation for pickerington north?
CREATE TABLE table_21685 ( "School" text, "Years of Participation" text, "OCC Championships" real, "Last OCC Championship" text, "Last Outright OCC Championship" text )
SELECT "Years of Participation" FROM table_21685 WHERE "School" = 'Pickerington North'
What's the number of the 1.0.12 release version?
CREATE TABLE table_30594 ( "Version" text, "Release" text, "Release date" text, "End of maintenance" text, "Requirement" text )
SELECT COUNT("Version") FROM table_30594 WHERE "Release" = '1.0.12'
What nationality is Steven Anthony?
CREATE TABLE table_54539 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "League from" text )
SELECT "Nationality" FROM table_54539 WHERE "Player" = 'steven anthony'
What is the highest points won when the player is aravane reza ?
CREATE TABLE table_3051 ( "Seed" real, "Rank" real, "Player" text, "Points" real, "Points defending" real, "Points won" real, "New points" real, "Status" text )
SELECT MAX("Points won") FROM table_3051 WHERE "Player" = 'Aravane Rezaï'
What was the result of the game with the record of 3-1?
CREATE TABLE table_20849830_1 ( result VARCHAR, record VARCHAR )
SELECT result FROM table_20849830_1 WHERE record = "3-1"
Which Nationality has a Round of 4?
CREATE TABLE table_name_17 ( nationality VARCHAR, round VARCHAR )
SELECT nationality FROM table_name_17 WHERE round = 4
Who is the runner-up for Ilhwa Chunma?
CREATE TABLE table_name_81 ( runner_up VARCHAR, winner VARCHAR )
SELECT runner_up FROM table_name_81 WHERE winner = "ilhwa chunma"
What are the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones', and count them by a line chart
CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text )
SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
For airlines named Aeroflot Group, what is the alliance?
CREATE TABLE table_name_11 ( alliance__association VARCHAR, airline_holding VARCHAR )
SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group"
What is every yellow jersey entry for the distance 125?
CREATE TABLE table_3791 ( "Year" text, "Stage" real, "Start of stage" text, "Distance (km)" text, "Category of climb" text, "Stage winner" text, "Nationality" text, "Yellow jersey" text, "Bend" real )
SELECT "Yellow jersey" FROM table_3791 WHERE "Distance (km)" = '125'
What is the Burmese term for Thursday?
CREATE TABLE table_72579 ( "Cardinal direction" text, "Burmese" text, "Sanskrit" text, "English" text, "Planet" text, "Sign" text )
SELECT "Burmese" FROM table_72579 WHERE "English" = 'Thursday'
Show the type of school and the number of buses for each type in a bar chart, show by the Type in ascending.
CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_city text, Age int ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, If_full_time bool ) CREATE TABLE school ( School_ID int, Grade text, School text, Location text, Type text )
SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY Type
What is the highest round played by Chris Phillips?
CREATE TABLE table_name_67 ( round INTEGER, player VARCHAR )
SELECT MAX(round) FROM table_name_67 WHERE player = "chris phillips"
What is the date for the episode performed by Sue Manchester?
CREATE TABLE table_191105_4 ( first_aired VARCHAR, performed_by VARCHAR )
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
Show the most common nationality for journalists.
CREATE TABLE journalist ( Nationality VARCHAR )
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?
CREATE TABLE table_name_98 ( visitor VARCHAR, decision VARCHAR, home VARCHAR )
SELECT visitor FROM table_name_98 WHERE decision = "osgood" AND home = "edmonton"
What is the date of the circuit gilles villeneuve?
CREATE TABLE table_1137707_2 ( date VARCHAR, location VARCHAR )
SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve"
What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)?
CREATE TABLE table_55082 ( "Season" text, "Club" text, "National League" text, "National Cup" text, "European Cup" text )
SELECT "Club" FROM table_55082 WHERE "National Cup" = 'turkish basketball cup' AND "European Cup" = 'fiba eurochallenge (3rd tier)'
What is the smallest width for a frame size of 5k and a height shorter than 2700?
CREATE TABLE table_name_18 ( width INTEGER, frame_size VARCHAR, height VARCHAR )
SELECT MIN(width) FROM table_name_18 WHERE frame_size = "5k" AND height < 2700
What is the Constituency number for Pandhana?
CREATE TABLE table_14188 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real )
SELECT "Constituency number" FROM table_14188 WHERE "Name" = 'pandhana'
What is the cyrillic name when the settlement is a anja?
CREATE TABLE table_2562572_52 ( cyrillic_name VARCHAR, settlement VARCHAR )
SELECT cyrillic_name FROM table_2562572_52 WHERE settlement = "Ašanja"
How many number of site have May 1, 2004 as the date?
CREATE TABLE table_22098274_1 ( site VARCHAR, date VARCHAR )
SELECT COUNT(site) FROM table_22098274_1 WHERE date = "May 1, 2004"
how many tracks have their producer as mike punch harper ?
CREATE TABLE table_203_353 ( id number, "#" number, "title" text, "producer(s)" text, "featured guest(s)" text, "time" text )
SELECT COUNT("title") FROM table_203_353 WHERE "producer(s)" = 'mike "punch" harper'