instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock?
CREATE TABLE table_name_56 ( original_broadway_cast VARCHAR, original_west_end_cast VARCHAR )
SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = "sheila hancock"
Which Date has a Venue of bucharest?
CREATE TABLE table_13121 ( "Mark" text, "Wind*" text, "Athlete" text, "Nationality" text, "Venue" text, "Date" text )
SELECT "Date" FROM table_13121 WHERE "Venue" = 'bucharest'
What is the surface of the match when the opponent was iryna bremond valeria savinykh?
CREATE TABLE table_55199 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT "Surface" FROM table_55199 WHERE "Opponents" = 'iryna bremond valeria savinykh'
Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.
CREATE TABLE people ( people_id number, district text, name text, party text, age number ) CREATE TABLE debate_people ( debate_id number, affirmative number, negative number, if_affirmative_win others ) CREATE TABLE debate ( debate_id number, date text, venue text, num_of_audience number )
SELECT T3.name, T2.date, T2.venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.debate_id = T2.debate_id JOIN people AS T3 ON T1.negative = T3.people_id ORDER BY T3.name
What are the NFL Teams in College North Texas State?
CREATE TABLE table_27359 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "NFL Team" FROM table_27359 WHERE "College" = 'North Texas State'
What was the winning score on 7 jun 1976?
CREATE TABLE table_name_4 ( winning_score VARCHAR, date VARCHAR )
SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976"
What's the score on December 1 when Philadelphia visited?
CREATE TABLE table_name_41 ( score VARCHAR, visitor VARCHAR, date VARCHAR )
SELECT score FROM table_name_41 WHERE visitor = "philadelphia" AND date = "december 1"
How many date of appointment entries are there when the team is khazar lankaran?
CREATE TABLE table_29285 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text )
SELECT COUNT("Date of appointment") FROM table_29285 WHERE "Team" = 'Khazar Lankaran'
What day in February did the team play the boston bruins?
CREATE TABLE table_27539535_7 ( february VARCHAR, opponent VARCHAR )
SELECT february FROM table_27539535_7 WHERE opponent = "Boston Bruins"
What was the 1st leg when Team 2 was Aurora?
CREATE TABLE table_name_3 ( team_2 VARCHAR )
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora"
how old is the youngest person for each job?, and could you order x-axis from low to high order?
CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER )
SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job
What College/junior/club team has a Position of centre, and pick is #22?
CREATE TABLE table_name_31 ( college_junior_club_team VARCHAR, position VARCHAR, pick__number VARCHAR )
SELECT college_junior_club_team FROM table_name_31 WHERE position = "centre" AND pick__number = "22"
What is the highest silver that has 57 as the total, with a bronze greater than 20?
CREATE TABLE table_63028 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX("Silver") FROM table_63028 WHERE "Total" = '57' AND "Bronze" > '20'
How many different results for red (e8) does the model with parchment/saddle interior/roof have?
CREATE TABLE table_23795 ( "Interior/Roof" text, "Black (UA)" real, "Red (E8)" real, "White (ZR)" real, "Green (SW)" real, "Totals" real )
SELECT COUNT("Red (E8)") FROM table_23795 WHERE "Interior/Roof" = 'Parchment/saddle'
Name the metrical equivalence for linha
CREATE TABLE table_28772 ( "Portuguese name" text, "English name" text, "Subdivides in" text, "Equivalence in Varas" text, "Metrical equivalence" text )
SELECT "Metrical equivalence" FROM table_28772 WHERE "Portuguese name" = 'Linha'
What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?
CREATE TABLE table_15822 ( "District" text, "Counties Represented" text, "Party" text, "First Elected" real, "Committee" text )
SELECT "District" FROM table_15822 WHERE "Counties Represented" = 'baltimore county' AND "Committee" = 'health and government operations' AND "First Elected" < '2002'
What is the date made that has an associated fleet number of 4?
CREATE TABLE table_67781 ( "Type" text, "Fleet numbers" text, "Quantity made" real, "Manufacturer" text, "Date made" text, "Date withdrawn" text )
SELECT "Date made" FROM table_67781 WHERE "Fleet numbers" = '4'
Which authors have a Unit of densu -ciula formation?
CREATE TABLE table_name_42 ( authors VARCHAR, unit VARCHAR )
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"
What Venue has an Away Team Score of 9.12 (66)?
CREATE TABLE table_57423 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_57423 WHERE "Away team score" = '9.12 (66)'
WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?
CREATE TABLE table_61006 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT COUNT("Points") FROM table_61006 WHERE "Wins" < '14' AND "Club" = 'sd indauchu' AND "Position" > '12'
Where is the game site for the game that had a packers record of 2-3?
CREATE TABLE table_34084 ( "Week" real, "Date" text, "Opponent" text, "Time / Time Zone" text, "Game Site" text, "Final Score" text, "Record" text, "Match Report" text )
SELECT "Game Site" FROM table_34084 WHERE "Record" = '2-3'
What is the Location when the time was 11:55?
CREATE TABLE table_name_22 ( location VARCHAR, time VARCHAR )
SELECT location FROM table_name_22 WHERE time = "11:55"
Which loss has an attendance greater than 49,688 and 11-8 as the record?
CREATE TABLE table_80455 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Loss" FROM table_80455 WHERE "Attendance" > '49,688' AND "Record" = '11-8'
What is the Standings of Eintracht Braunschweig?
CREATE TABLE table_34964 ( "Season" text, "Champions" text, "Runners-up" text, "Promotion Playoff" text, "Standings" text )
SELECT "Standings" FROM table_34964 WHERE "Champions" = 'eintracht braunschweig'
How many rounds have an Overall larger than 17, and a Position of quarterback?
CREATE TABLE table_32303 ( "Round" real, "Overall" real, "Player" text, "Position" text, "College" text )
SELECT COUNT("Round") FROM table_32303 WHERE "Overall" > '17' AND "Position" = 'quarterback'
which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?
CREATE TABLE table_23117208_3 ( no_in_season INTEGER, directed_by VARCHAR )
SELECT MAX(no_in_season) FROM table_23117208_3 WHERE directed_by = "Constantine Makris"
What is the title of the issue where the art was done by Barry Kitson and Farmer?
CREATE TABLE table_18305523_2 ( story_title VARCHAR, artist_s VARCHAR )
SELECT story_title FROM table_18305523_2 WHERE artist_s = "Barry Kitson and Farmer"
Which Total Pts have a 2001 02 Pts smaller than 38?
CREATE TABLE table_78639 ( "Team" text, "2003\u201304 Pts" text, "2004\u201305 Pts" text, "2001\u201302 Pts" real, "Total Pts" real, "Total Pld" real )
SELECT MIN("Total Pts") FROM table_78639 WHERE "2001\u201302 Pts" < '38'
What is the total number of population in the land with an area of 149.32 km2?
CREATE TABLE table_21283 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text )
SELECT COUNT("Population") FROM table_21283 WHERE "Area km 2" = '149.32'
What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?
CREATE TABLE table_48303 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Sales (billion $)" real, "Profits (billion $)" real, "Assets (billion $)" real, "Market Value (billion $)" real )
SELECT MAX("Market Value (billion $)") FROM table_48303 WHERE "Profits (billion $)" = '20.96' AND "Assets (billion $)" > '166.99'
what's the current country of location with operational period of summer of 1941 to 28 june 1944
CREATE TABLE table_10335_1 ( current_country_of_location VARCHAR, operational VARCHAR )
SELECT current_country_of_location FROM table_10335_1 WHERE operational = "Summer of 1941 to 28 June 1944"
Which time/retired has a qual of 144.02?
CREATE TABLE table_name_75 ( time_retired VARCHAR, qual VARCHAR )
SELECT time_retired FROM table_name_75 WHERE qual = 144.02
What show played at 8:00 when Ugly Betty played at 8:30?
CREATE TABLE table_42061 ( "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text )
SELECT "8:00" FROM table_42061 WHERE "8:30" = 'ugly betty'
Draw a bar chart for what is average age of male for different job title?, order by the job in asc.
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 WHERE gender = 'male' GROUP BY job ORDER BY job
what's the county with code being 2
CREATE TABLE table_19089 ( "Code" real, "County" text, "Former Province" text, "Area (km 2 )" text, "Population Census 2009" real, "Capital" text )
SELECT "County" FROM table_19089 WHERE "Code" = '2'
Name the number for dl
CREATE TABLE table_23802 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "Pick #" FROM table_23802 WHERE "Position" = 'DL'
Who were the opponents during week 14?
CREATE TABLE table_name_53 ( opponent VARCHAR, week VARCHAR )
SELECT opponent FROM table_name_53 WHERE week = 14
What is the winning span of the name martin kaymer?
CREATE TABLE table_23076 ( "Rank" text, "Name" text, "Lifespan" text, "Country" text, "Wins" real, "Majors" real, "Winning span" text, "Span (years)" real )
SELECT "Winning span" FROM table_23076 WHERE "Name" = 'Martin Kaymer'
What numer pick in the draft for jerry hill?
CREATE TABLE table_867 ( "Draft Year" real, "Player" text, "Position" text, "Round" real, "Overall" real, "NFL Team" text )
SELECT COUNT("Overall") FROM table_867 WHERE "Player" = 'Jerry Hill'
when the key tower was built in 1991 , what was the previous tallest building constructed ?
CREATE TABLE table_204_649 ( id number, "rank" number, "name" text, "image" number, "height\nft (m)" text, "floors" number, "year" number, "notes" text )
SELECT "name" FROM table_204_649 WHERE "year" < 1991 ORDER BY "height\nft (m)" DESC LIMIT 1
Who is performing in the back stage position for the song 'Badlands'? Show the first name and the last name.
CREATE TABLE Songs ( SongId VARCHAR, Title VARCHAR ) CREATE TABLE Performance ( bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR ) CREATE TABLE Band ( firstname VARCHAR, lastname VARCHAR, id VARCHAR )
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
Can you tell me the Score that has the Opponent of at edmonton oilers?
CREATE TABLE table_47085 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Record" text )
SELECT "Score" FROM table_47085 WHERE "Opponent" = 'at edmonton oilers'
What was the location when the opponent was Seattle Supersonics?
CREATE TABLE table_79061 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text )
SELECT "Location/Attendance" FROM table_79061 WHERE "Opponent" = 'seattle supersonics'
Name the broadcast date for run timke of 25:04
CREATE TABLE table_2102782_1 ( broadcast_date VARCHAR, run_time VARCHAR )
SELECT broadcast_date FROM table_2102782_1 WHERE run_time = "25:04"
what is the maximum game where high points is micka l gelabale (21)
CREATE TABLE table_11964154_9 ( game INTEGER, high_points VARCHAR )
SELECT MAX(game) FROM table_11964154_9 WHERE high_points = "Mickaël Gelabale (21)"
How many points does Swedish America's Cup Challenge have for rr1?
CREATE TABLE table_21515673_2 ( rr1_pts VARCHAR, team_name VARCHAR )
SELECT COUNT(rr1_pts) FROM table_21515673_2 WHERE team_name = "Swedish America's Cup Challenge"
Name the stock for colt model mt6601
CREATE TABLE table_12834315_4 ( stock VARCHAR, colt_model_no VARCHAR )
SELECT stock FROM table_12834315_4 WHERE colt_model_no = "MT6601"
What is the motive before 2007?
CREATE TABLE table_14685 ( "Year" real, "Award" text, "Category" text, "Motive" text, "Result" text )
SELECT "Motive" FROM table_14685 WHERE "Year" < '2007'
What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?
CREATE TABLE table_name_51 ( year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR )
SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?
CREATE TABLE table_38657 ( "Discipline" text, "Peter" real, "Adam" real, "Jade" real, "Plat'num" real )
SELECT AVG("Adam") FROM table_38657 WHERE "Jade" > '5' AND "Peter" < '0'
What tournament has a year prior to 2001?
CREATE TABLE table_35925 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Extra" text )
SELECT "Tournament" FROM table_35925 WHERE "Year" < '2001'
Draw a bar chart of decor versus minimal baseprice, and sort Y-axis from low to high order.
CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER )
SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY MIN(basePrice)
How many winners were there in the race of 1922
CREATE TABLE table_777 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT COUNT("Incumbent") FROM table_777 WHERE "First elected" = '1922'
List first name and last name of customers that have more than 2 payments.
CREATE TABLE Customers ( first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR ) CREATE TABLE Customer_Payments ( customer_id VARCHAR )
SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2
Which location was won by George Heath?
CREATE TABLE table_65996 ( "Year" real, "Formula" text, "Driver" text, "Constructor" text, "Location" text, "Report" text )
SELECT "Location" FROM table_65996 WHERE "Driver" = 'george heath'
What class is ERP W of 800?
CREATE TABLE table_name_9 ( class VARCHAR, erp_w VARCHAR )
SELECT class FROM table_name_9 WHERE erp_w = 800
Which Set 3 has a Time of 10:00, and a Set 2 of 25 19?
CREATE TABLE table_name_22 ( set_3 VARCHAR, time VARCHAR, set_2 VARCHAR )
SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–19"
What is the average crowd to watch Hawthorn as the away team?
CREATE TABLE table_name_29 ( crowd INTEGER, away_team VARCHAR )
SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "hawthorn"
How many wins did they have at Richmond Cricket Ground Stadium?
CREATE TABLE table_name_20 ( wins VARCHAR, stadium VARCHAR )
SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"
which two destinations were available for less than one year ?
CREATE TABLE table_203_323 ( id number, "city" text, "country" text, "airport" text, "begin" number, "end" number )
SELECT "city" FROM table_203_323 WHERE "end" - "begin" < 1
How much Scored has Losses smaller than 0?
CREATE TABLE table_66359 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real )
SELECT SUM("Scored") FROM table_66359 WHERE "Losses" < '0'
For the team whose shirt sponsor is Evonik, who is the kitmaker?
CREATE TABLE table_50360 ( "Team" text, "Head Coach" text, "Team Captain" text, "Kitmaker" text, "Shirt sponsor" text )
SELECT "Kitmaker" FROM table_50360 WHERE "Shirt sponsor" = 'evonik'
What left office date happened in Washington?
CREATE TABLE table_name_94 ( Left VARCHAR, location VARCHAR )
SELECT Left AS office FROM table_name_94 WHERE location = "washington"
What loan expires date has a Date of 29 december 2003?
CREATE TABLE table_13239 ( "Position" text, "Player" text, "Loaned to" text, "Date" text, "Loan expires" text )
SELECT "Loan expires" FROM table_13239 WHERE "Date" = '29 december 2003'
What is the bleeding time for glanzmann's thrombasthenia?
CREATE TABLE table_238124_1 ( bleeding_time VARCHAR, condition VARCHAR )
SELECT bleeding_time FROM table_238124_1 WHERE condition = "Glanzmann's thrombasthenia"
What's the top year with the Chassis ats hs1?
CREATE TABLE table_name_33 ( year INTEGER, chassis VARCHAR )
SELECT MAX(year) FROM table_name_33 WHERE chassis = "ats hs1"
What is the record during the event, UFC 27?
CREATE TABLE table_name_14 ( record VARCHAR, event VARCHAR )
SELECT record FROM table_name_14 WHERE event = "ufc 27"
When did the woman who died at 31 first contact Hitlers?
CREATE TABLE table_38012 ( "Name" text, "Life" text, "Age at death" text, "First contact with Hitler" text, "Relationship" text )
SELECT "First contact with Hitler" FROM table_38012 WHERE "Age at death" = '31'
What Competition's Score was 1-2?
CREATE TABLE table_name_76 ( competition VARCHAR, score VARCHAR )
SELECT competition FROM table_name_76 WHERE score = "1-2"
How many people attended the game on February 3, 2008?
CREATE TABLE table_53421 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text )
SELECT SUM("Attendance") FROM table_53421 WHERE "Date" = 'february 3, 2008'
what television service are in the united kingdom and n is greater than 854.0?
CREATE TABLE table_15887683_15 ( television_service VARCHAR, country VARCHAR, n° VARCHAR )
SELECT television_service FROM table_15887683_15 WHERE country = "United Kingdom" AND n° > 854.0
Show the average age of heads of departments born in each state with a bar chart, list by the X-axis in desc.
CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real ) CREATE TABLE head ( head_ID int, name text, born_state text, age real ) CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text )
SELECT born_state, AVG(age) FROM head GROUP BY born_state ORDER BY born_state DESC
How many FA cup goals have Jimmy Nicholson as the name, and league cup goals greater than 0?
CREATE TABLE table_name_41 ( fa_cup_goals VARCHAR, name VARCHAR, league_cup_goals VARCHAR )
SELECT COUNT(fa_cup_goals) FROM table_name_41 WHERE name = "jimmy nicholson" AND league_cup_goals > 0
what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?
CREATE TABLE table_name_32 ( platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR )
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon"
Who was awarded after 1947 in the category of, the best actor in a leading role?
CREATE TABLE table_40305 ( "Year" real, "Award" text, "Result" text, "Category" text, "Film" text )
SELECT "Award" FROM table_40305 WHERE "Year" > '1947' AND "Category" = 'best actor in a leading role'
What is the overall rank with rating smaller than 8.2 and rating share of 4.5/11?
CREATE TABLE table_57926 ( "Episode" text, "Air Date" text, "Rating" real, "Share" real, "Rating/Share 18\u201349" text, "Viewers (m)" real, "Timeslot Rank" real, "Night Rank" text, "Overall Rank" real )
SELECT COUNT("Overall Rank") FROM table_57926 WHERE "Rating/Share 18\u201349" = '4.5/11' AND "Rating" < '8.2'
which film aired in 1994 and has marika as the role ?
CREATE TABLE table_201_36 ( id number, "year" number, "title" text, "role" text, "notes" text )
SELECT "title" FROM table_201_36 WHERE "year" = 1994 AND "role" = 'marika'
How tall is the Street address of 07.0 200 east washington street?
CREATE TABLE table_name_10 ( height_ft___m__ VARCHAR, street_address VARCHAR )
SELECT height_ft___m__ FROM table_name_10 WHERE street_address = "07.0 200 east washington street"
Can you compare the account balances of customers with the letter 'a' in their names using a bar graph.
CREATE TABLE bank ( branch_ID int, bname varchar(20), no_of_customers int, city varchar(10), state varchar(20) ) CREATE TABLE loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_ID varchar(3), amount int ) CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) )
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'
What is the GDP of the nation with 56,210,000 people?
CREATE TABLE table_71503 ( "Member countries" text, "Population" text, "Area (km\u00b2)" text, "GDP (billion US$)" text, "GDP per capita (US$)" text )
SELECT "GDP per capita (US$)" FROM table_71503 WHERE "Population" = '56,210,000'
Who was the opposition for the player who has a total of 10 points?
CREATE TABLE table_64444 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Opposition" text )
SELECT "Opposition" FROM table_64444 WHERE "Total" = '10'
Which party does the incumbent first elected in 1994 belong to?
CREATE TABLE table_18113 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT "Party" FROM table_18113 WHERE "First elected" = '1994'
How many parties received 29.9% of the vote in Manhattan?
CREATE TABLE table_1108394_47 ( party VARCHAR, manhattan VARCHAR )
SELECT COUNT(party) FROM table_1108394_47 WHERE manhattan = "29.9_percentage"
How many artworks are there?
CREATE TABLE artwork ( Id VARCHAR )
SELECT COUNT(*) FROM artwork
Which round has more than 79 overall and a position of QB?
CREATE TABLE table_47962 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT "Round" FROM table_47962 WHERE "Position" = 'qb' AND "Overall" > '79'
What is the sum of Total when rank is 2?
CREATE TABLE table_name_46 ( total INTEGER, rank VARCHAR )
SELECT SUM(total) FROM table_name_46 WHERE rank = "2"
Who wrote 'episode 10'?
CREATE TABLE table_22285 ( "No. overall" real, "No. in series" real, "Title" text, "Director" text, "Writer" text, "Original air date" text, "Production code" real )
SELECT "Writer" FROM table_22285 WHERE "Title" = 'Episode 10'
Name the tournament for march 25, 2012
CREATE TABLE table_name_24 ( tournament VARCHAR, date VARCHAR )
SELECT tournament FROM table_name_24 WHERE date = "march 25, 2012"
What is the Artist with a Date that is june 1979?
CREATE TABLE table_40579 ( "Spoofed Title" text, "Actual Title" text, "Writer" text, "Artist" text, "Issue" real, "Date" text )
SELECT "Artist" FROM table_40579 WHERE "Date" = 'june 1979'
Return the average gross sales in dollars across all films.
CREATE TABLE film_market_estimation ( estimation_id number, low_estimate number, high_estimate number, film_id number, type text, market_id number, year number ) CREATE TABLE market ( market_id number, country text, number_cities number ) CREATE TABLE film ( film_id number, title text, studio text, director text, gross_in_dollar number )
SELECT AVG(gross_in_dollar) FROM film
When 129 is the number in the series who is the writer?
CREATE TABLE table_25525 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text )
SELECT "Written by" FROM table_25525 WHERE "No. in series" = '129'
The race tony bettenhausen 200 has what smallest rd?
CREATE TABLE table_72118 ( "Rd" real, "Name" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text )
SELECT MIN("Rd") FROM table_72118 WHERE "Name" = 'Tony Bettenhausen 200'
What is the conference record for the year of 1971?
CREATE TABLE table_75478 ( "Year" text, "Overall Record" text, "Conference Record" text, "Coach" text, "Conference" text )
SELECT "Conference Record" FROM table_75478 WHERE "Year" = '1971'
What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?
CREATE TABLE table_39540 ( "Wind Farm" text, "Capacity (MW)" real, "Turbines" real, "Turbine Vendor" text, "Size (MW)" text, "County" text )
SELECT "Size (MW)" FROM table_39540 WHERE "Turbines" > '19' AND "Turbine Vendor" = 'enercon' AND "County" = 'wexford'
what number of irregular types are there ?
CREATE TABLE table_203_250 ( id number, "name" text, "type" text, "r.a. (j2000)" text, "dec. (j2000)" text, "redshift (km/s)" text, "apparent magnitude" number )
SELECT COUNT(*) FROM table_203_250 WHERE "type" = 'irregular'
What was the winning score with a margin victory of 2 strokes?
CREATE TABLE table_43395 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT "Winning score" FROM table_43395 WHERE "Margin of victory" = '2 strokes'
When Collingwood was the home team who was the opposing away team?
CREATE TABLE table_name_52 ( away_team VARCHAR, home_team VARCHAR )
SELECT away_team FROM table_name_52 WHERE home_team = "collingwood"
What week was the finalist Martina Hingis?
CREATE TABLE table_76540 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text )
SELECT "Week" FROM table_76540 WHERE "Finalist" = 'martina hingis'
which rider came in first with 25 points ?
CREATE TABLE table_204_214 ( id number, "pos" text, "no." number, "rider" text, "manufacturer" text, "laps" number, "time/retired" text, "grid" number, "points" number )
SELECT "rider" FROM table_204_214 WHERE "points" = 25
Show me about the distribution of Team_Name and Team_ID in a bar chart, and order Y-axis in asc order.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_ID