instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, and rank by the y axis from low to high.
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 T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price
What years did Marienhof run, which featured Leonore Capell and lasted 10 years?
CREATE TABLE table_65043 ( "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text )
SELECT "Years" FROM table_65043 WHERE "Soap Opera" = 'marienhof' AND "Duration" = '10 years' AND "Actor" = 'leonore capell'
What is the Film title used in nomination of the Film with a Serbian title of ?
CREATE TABLE table_43408 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Serbian title" text, "Director" text, "Result" text )
SELECT "Film title used in nomination" FROM table_43408 WHERE "Serbian title" = 'бело одело'
What is the version shown for the Length of 5:20, and shows Remixed by ?
CREATE TABLE table_name_48 ( version VARCHAR, length VARCHAR, remixed_by VARCHAR )
SELECT version FROM table_name_48 WHERE length = "5:20" AND remixed_by = "—"
Which analog channel is Fox on?
CREATE TABLE table_52794 ( "Analog Channel" text, "Digital Channel" text, "Call sign" text, "Name" text, "Network" text )
SELECT "Analog Channel" FROM table_52794 WHERE "Network" = 'fox'
What day was the opponent Austria?
CREATE TABLE table_name_8 ( date VARCHAR, opponent VARCHAR )
SELECT date FROM table_name_8 WHERE opponent = "austria"
Name the regular season for 2005
CREATE TABLE table_2450 ( "Year" real, "Division" real, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text )
SELECT "Regular Season" FROM table_2450 WHERE "Year" = '2005'
Name the total number of bids of the sun belt conference
CREATE TABLE table_10722506_6 ( _number_of_bids VARCHAR, conference VARCHAR )
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1?
CREATE TABLE table_6888 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT SUM("Events") FROM table_6888 WHERE "Wins" < '1' AND "Top-25" = '3' AND "Top-5" < '1'
name the advisor who served under the same president as karl rove .
CREATE TABLE table_204_598 ( id number, "name" text, "state of residence" text, "took office" text, "left office" text, "president served under" text )
SELECT "name" FROM table_204_598 WHERE "name" <> 'karl rove' AND "president served under" = (SELECT "president served under" FROM table_204_598 WHERE "name" = 'karl rove')
What body participated in 1973?
CREATE TABLE table_name_43 ( body VARCHAR, year VARCHAR )
SELECT body FROM table_name_43 WHERE year = "1973"
What is the col (m) of the Barurumea Ridge peak?
CREATE TABLE table_18946749_2 ( col__m_ INTEGER, peak VARCHAR )
SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge"
Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?
CREATE TABLE table_57592 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT "Constructor" FROM table_57592 WHERE "Tyre" = 'c' AND "Pole position" = 'eugenio castellotti'
Stacked bar chart of school_id for with each ACC_Home in each acc road, rank by the Y-axis in asc.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) 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 )
SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY School_ID
When was the date of death for the person married to Charles II?
CREATE TABLE table_name_86 ( death VARCHAR, spouse VARCHAR )
SELECT death FROM table_name_86 WHERE spouse = "charles ii"
Who was the opponent on November 11, 2001?
CREATE TABLE table_name_4 ( opponent VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_4 WHERE date = "november 11, 2001"
What enrollement would you expect if you were attending the university in St. Louis?
CREATE TABLE table_2319 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment" real, "Founded" real )
SELECT "Enrollment" FROM table_2319 WHERE "Location(s)" = 'St. Louis'
What is the total attendance for Candlestick Park?
CREATE TABLE table_8660 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real )
SELECT COUNT("Attendance") FROM table_8660 WHERE "Game site" = 'candlestick park'
How many districts does Ed Jones represent?
CREATE TABLE table_1341718_43 ( district VARCHAR, incumbent VARCHAR )
SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones"
Name the least points with chassis of kurtis kraft 3000 and year before 1951
CREATE TABLE table_68671 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT MIN("Points") FROM table_68671 WHERE "Chassis" = 'kurtis kraft 3000' AND "Year" < '1951'
How many Top 10s have Wins larger than 0, and Poles larger than 0?
CREATE TABLE table_38441 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" real, "Avg. Finish" real, "Winnings" text, "Position" text )
SELECT COUNT("Top 10") FROM table_38441 WHERE "Wins" > '0' AND "Poles" > '0'
Which streak before game 12 had a team points larger than 113 on November 16?
CREATE TABLE table_44259 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Team points" real, "Opponent score" real, "Record" text, "Streak" text )
SELECT "Streak" FROM table_44259 WHERE "Team points" > '113' AND "Game" < '12' AND "Date" = 'november 16'
When 1462/63 was the elected what was the no.?
CREATE TABLE table_1847 ( "No." text, "Summoned" text, "Elected" text, "Assembled" text, "Dissolved" text, "1st member" text, "2nd member" text )
SELECT "No." FROM table_1847 WHERE "Elected" = '1462/63'
What did the Melbourne team score in their away game?
CREATE TABLE table_name_3 ( away_team VARCHAR )
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne"
What was the team 1 when Red Star (D1) was team 2?
CREATE TABLE table_name_60 ( team_1 VARCHAR, team_2 VARCHAR )
SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)"
What was the attendance for the game held on September 18, 1994, with a week less than 5?
CREATE TABLE table_name_25 ( attendance VARCHAR, week VARCHAR, date VARCHAR )
SELECT attendance FROM table_name_25 WHERE week < 5 AND date = "september 18, 1994"
Name the total number of population 2011 for perlez
CREATE TABLE table_3339 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text )
SELECT COUNT("Population (2011)") FROM table_3339 WHERE "Settlement" = 'Perlez'
What is the population for Deed number of 21352021?
CREATE TABLE table_name_51 ( population VARCHAR, deed_number VARCHAR )
SELECT population FROM table_name_51 WHERE deed_number = "21352021"
1 or more of the following infections: a ) primary or secondary bacteremia by gram negative bacteria, b ) acute pyelonephritis, or c ) intrabdominal infection.
CREATE TABLE table_train_66 ( "id" int, "pregnancy_or_lactation" bool, "white_blood_cell_count_wbc" int, "acute_pyelonephritis" bool, "intrabdominal_infection" bool, "body_weight" float, "oxygen_therapy_by_face_mask" bool, "temperature" float, "heart_rate" int, "paco2" float, "band_form" int, "respiratory_rate" int, "bacteremia_by_gram_negative_bacteria" bool, "NOUSE" float )
SELECT * FROM table_train_66 WHERE (CASE WHEN bacteremia_by_gram_negative_bacteria = 1 THEN 1 ELSE 0 END + CASE WHEN acute_pyelonephritis = 1 THEN 1 ELSE 0 END + CASE WHEN intrabdominal_infection = 1 THEN 1 ELSE 0 END) >= 1
Which Allied Force targetted Woensdrecht?
CREATE TABLE table_72197 ( "Target" text, "Target Code (Allied)" text, "Luftwaffe unit (wing)" text, "Allied forces" text, "Effect on Allied Squadrons (according to official figures)" text )
SELECT "Allied forces" FROM table_72197 WHERE "Target" = 'Woensdrecht'
What fleet numbers have a diagram less than 99 and built in 1960?
CREATE TABLE table_name_68 ( fleet_numbers VARCHAR, diagram VARCHAR, built VARCHAR )
SELECT fleet_numbers FROM table_name_68 WHERE diagram < 99 AND built = "1960"
How many seconds is a shuttle run that give 2 points?
CREATE TABLE table_name_54 ( shuttle_run__sec_ VARCHAR, points VARCHAR )
SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
What is the largest overall number of major hurricanes?
CREATE TABLE table_2930244_3 ( number_of_major_hurricanes INTEGER )
SELECT MAX(number_of_major_hurricanes) FROM table_2930244_3
What's the smallest episode number of an episode whose number in the series is 22?
CREATE TABLE table_18068 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text )
SELECT MIN("No. in season") FROM table_18068 WHERE "No. in series" = '22'
What was the position of the player from Butler High School?
CREATE TABLE table_17065 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT "Position" FROM table_17065 WHERE "School" = 'Butler High School'
I want to know the proportion of the total number for each carrier.
CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Ranking int ) CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int )
SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier
What country is the film directed by Michael Haneke from?
CREATE TABLE table_68198 ( "Year" real, "English title" text, "Original title" text, "Country" text, "Director'" text )
SELECT "Country" FROM table_68198 WHERE "Director'" = 'michael haneke'
What was the score for the Perth Wildcats as away team?
CREATE TABLE table_9338 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text )
SELECT "Score" FROM table_9338 WHERE "Away team" = 'perth wildcats'
How many Games for Rank 2 Terrell McIntyre?
CREATE TABLE table_43055 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Assists" real )
SELECT MIN("Games") FROM table_43055 WHERE "Name" = 'terrell mcintyre' AND "Rank" > '2'
What are the examples for the Australian ?
CREATE TABLE table_60037 ( "Letter" text, "American" text, "British" text, "Australian" text, "Examples" text )
SELECT "Examples" FROM table_60037 WHERE "Australian" = 'æ'
WHAT IS THE BUDGET FOR THE INCREDIBLES?
CREATE TABLE table_name_28 ( budget VARCHAR, film VARCHAR )
SELECT budget FROM table_name_28 WHERE film = "the incredibles"
Give me a pie to show the total number from different directed by.
CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text ) CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text )
SELECT Directed_by, COUNT(*) FROM film GROUP BY Directed_by
What year were the first/second year reps Katie Pautler and Devery North?
CREATE TABLE table_24985 ( "Year" text, "Chairman" text, "Artistic Director" text, "Performance Liaison" text, "Secretary" text, "Business manager" text, "Production Stagemanager" text, "Dramaturge" text, "Public Relations" text, "First/Second Year Rep." text, "Male Rep." text )
SELECT "Year" FROM table_24985 WHERE "First/Second Year Rep." = 'Katie Pautler and Devery North'
What is the Rank of the Character with Tenure of 2011?
CREATE TABLE table_name_2 ( rank VARCHAR, tenure VARCHAR )
SELECT rank FROM table_name_2 WHERE tenure = "2011"
Who was the 2nd member of the parliament that was assembled on 3 november 1529?
CREATE TABLE table_62448 ( "Elected" text, "Assembled" text, "Dissolved" text, "1st member" text, "2nd member" text )
SELECT "2nd member" FROM table_62448 WHERE "Assembled" = '3 november 1529'
Which Tournament has a Location of texas, and a Winner of tom watson (39)?
CREATE TABLE table_6175 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" real )
SELECT "Tournament" FROM table_6175 WHERE "Location" = 'texas' AND "Winner" = 'tom watson (39)'
Away result of 1-2 has what season?
CREATE TABLE table_name_95 ( season VARCHAR, away_result VARCHAR )
SELECT season FROM table_name_95 WHERE away_result = "1-2"
What are the nationalities and ages of journalists?
CREATE TABLE journalist ( journalist_id number, name text, nationality text, age text, years_working number ) CREATE TABLE event ( event_id number, date text, venue text, name text, event_attendance number ) CREATE TABLE news_report ( journalist_id number, event_id number, work_type text )
SELECT nationality, age FROM journalist
What is the number of podiums for season 2010 for campionato italiano superstars.
CREATE TABLE table_16114 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text )
SELECT COUNT("Podiums") FROM table_16114 WHERE "Season" = '2010' AND "Series" = 'Campionato Italiano Superstars'
before week 12 what was the attendance on 1983-11-21?
CREATE TABLE table_name_22 ( attendance INTEGER, date VARCHAR, week VARCHAR )
SELECT SUM(attendance) FROM table_name_22 WHERE date = "1983-11-21" AND week < 12
How much was a Reverse of guitar of agust n p o barrios before 1998?
CREATE TABLE table_name_1 ( value VARCHAR, first_issued VARCHAR, reverse VARCHAR )
SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = "guitar of agustín pío barrios"
What is the result when the score is 0-2?
CREATE TABLE table_name_20 ( result VARCHAR, score VARCHAR )
SELECT result FROM table_name_20 WHERE score = "0-2"
what is the score on 22 february 1993?
CREATE TABLE table_43604 ( "Outcome" text, "Date" text, "Championship" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Score" FROM table_43604 WHERE "Date" = '22 february 1993'
Name the season for august 16, 2010
CREATE TABLE table_2140071_10 ( season VARCHAR, premier_date VARCHAR )
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010"
What is the Date, when the home team is the NY Rangers?
CREATE TABLE table_name_22 ( date VARCHAR, home VARCHAR )
SELECT date FROM table_name_22 WHERE home = "ny rangers"
What is the Korean dialect with a jeolla RR Romaja?
CREATE TABLE table_name_18 ( korean_dialect VARCHAR, rr_romaja VARCHAR )
SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla"
What is the name of the shop that has the most different kinds of devices in stock?
CREATE TABLE stock ( shop_id number, device_id number, quantity number ) CREATE TABLE device ( device_id number, device text, carrier text, package_version text, applications text, software_platform text ) CREATE TABLE shop ( shop_id number, shop_name text, location text, open_date text, open_year number )
SELECT T2.shop_name FROM stock AS T1 JOIN shop AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id ORDER BY COUNT(*) DESC LIMIT 1
What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?
CREATE TABLE table_name_68 ( total VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR )
SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = "14" AND nation = "afghanistan"
what is the lowest lane when react is more than 0.164 and the nationality is guinea?
CREATE TABLE table_name_64 ( lane INTEGER, react VARCHAR, nationality VARCHAR )
SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea"
what is the rank when the total points is more than 194, round4 is less than 64, round3 is more than 51 and round 2 is less than 66?
CREATE TABLE table_name_72 ( rank VARCHAR, round2 VARCHAR, round3 VARCHAR, total_points VARCHAR, round4 VARCHAR )
SELECT COUNT(rank) FROM table_name_72 WHERE total_points > 194 AND round4 < 64 AND round3 > 51 AND round2 < 66
If team two is San Lorenzo, how many were on team one?
CREATE TABLE table_21070 ( "Team #1" text, "Points" text, "Team #2" text, "1st leg" text, "2nd leg" text )
SELECT COUNT("Team #1") FROM table_21070 WHERE "Team #2" = 'San Lorenzo'
Who was ashley sampi's opponent?
CREATE TABLE table_name_71 ( opponent VARCHAR, player VARCHAR )
SELECT opponent FROM table_name_71 WHERE player = "ashley sampi"
How many millions of viewers watched episode 15?
CREATE TABLE table_11230937_2 ( us_viewers__millions_ VARCHAR, no_in_season VARCHAR )
SELECT us_viewers__millions_ FROM table_11230937_2 WHERE no_in_season = 15
Name the highest Horizontal Bar which is in france and Rings smaller than 58.975?
CREATE TABLE table_name_4 ( horizontal_bar INTEGER, country VARCHAR, rings VARCHAR )
SELECT MAX(horizontal_bar) FROM table_name_4 WHERE country = "france" AND rings < 58.975
What candidates were in the election when james patrick sutton was incumbent?
CREATE TABLE table_751 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Candidates" FROM table_751 WHERE "Incumbent" = 'James Patrick Sutton'
When did the ATV that deorbited on 29 september 2008, launch?
CREATE TABLE table_44446 ( "Designation" text, "Name" text, "Launch date" text, "ISS docking date" text, "Deorbit date" text )
SELECT "Launch date" FROM table_44446 WHERE "Deorbit date" = '29 september 2008'
What is the Team with a Score that is w 101 97 (2ot)?
CREATE TABLE table_40501 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_40501 WHERE "Score" = 'w 101–97 (2ot)'
Who are the player's who weighed 170?
CREATE TABLE table_25382 ( "No." real, "Player" text, "Position" text, "Height" text, "Weight" real, "Class" text, "Hometown" text )
SELECT "Player" FROM table_25382 WHERE "Weight" = '170'
What are the reigns and days held of all wrestlers?
CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text )
SELECT reign, days_held FROM wrestler
In episode Top 16 (8 Men), what are the themes?
CREATE TABLE table_26250199_1 ( theme VARCHAR, episode VARCHAR )
SELECT theme FROM table_26250199_1 WHERE episode = "Top 16 (8 Men)"
Which ship was raided on 26 September 1940?
CREATE TABLE table_name_52 ( name_of_ship VARCHAR, date VARCHAR )
SELECT name_of_ship FROM table_name_52 WHERE date = "26 september 1940"
What is the record of the game before week 5 and a bye game site?
CREATE TABLE table_36717 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text )
SELECT "Record" FROM table_36717 WHERE "Week" < '5' AND "Game Site" = 'bye'
What is City, when IATA is 'amm'?
CREATE TABLE table_8826 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT "City" FROM table_8826 WHERE "IATA" = 'amm'
How many players played each position. Show a pie chart.
CREATE TABLE match_season ( Season real, Player text, Position text, Country int, Team int, Draft_Pick_Number int, Draft_Class text, College text ) CREATE TABLE player ( Player_ID int, Player text, Years_Played text, Total_WL text, Singles_WL text, Doubles_WL text, Team int ) CREATE TABLE team ( Team_id int, Name text ) CREATE TABLE country ( Country_id int, Country_name text, Capital text, Official_native_language text )
SELECT Position, COUNT(*) FROM match_season GROUP BY Position
What's the release date of Forward March Hare?
CREATE TABLE table_name_10 ( release_date VARCHAR, title VARCHAR )
SELECT release_date FROM table_name_10 WHERE title = "forward march hare"
What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?
CREATE TABLE table_43083 ( "Usage" text, "Sn/Sb (%)" text, "Liquid at (\u00b0C)" text, "Casting at (\u00b0C)" text, "Remelting at (\u00b0C)" text, "Hardness" text )
SELECT "Remelting at (\u00b0C)" FROM table_43083 WHERE "Sn/Sb (%)" = '9.5/15'
Which home team plays at VFL Park?
CREATE TABLE table_54458 ( "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_54458 WHERE "Venue" = 'vfl park'
What player played for the Balmain Tigers?
CREATE TABLE table_4885 ( "Year" text, "Player" text, "Nationality" text, "Position" text, "Club" text )
SELECT "Player" FROM table_4885 WHERE "Club" = 'balmain tigers'
How old is the person with the height of m (ft 3 4 in)?
CREATE TABLE table_26662 ( "Province, Community" text, "Contestant" text, "Age" real, "Height" text, "Hometown" text, "Geographical Regions" text )
SELECT "Age" FROM table_26662 WHERE "Height" = 'm (ft 3⁄4 in)'
List the total number of years that have a score of 3 6, 4 6, 2 6.
CREATE TABLE table_2533 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT COUNT("Year") FROM table_2533 WHERE "Score in the final" = '3–6, 4–6, 2–6'
What is the nation when the for is 326?
CREATE TABLE table_28838 ( "Place" real, "Nation" text, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" real, "Table points" real )
SELECT "Nation" FROM table_28838 WHERE "for" = '326'
What is the mean number of laps where time/retired was +1:05.564?
CREATE TABLE table_10428 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT AVG("Laps") FROM table_10428 WHERE "Time/Retired" = '+1:05.564'
Show the relationship between the number of schools in each county and total enrollment in each county by a scatter plot.
CREATE TABLE School ( School_id text, School_name text, Location text, Mascot text, Enrollment int, IHSAA_Class text, IHSAA_Football_Class text, County text ) CREATE TABLE endowment ( endowment_id int, School_id int, donator_name text, amount real ) CREATE TABLE budget ( School_id int, Year int, Budgeted int, total_budget_percent_budgeted real, Invested int, total_budget_percent_invested real, Budget_invested_percent text )
SELECT COUNT(*), SUM(Enrollment) FROM School GROUP BY County
What is the total amount of settlement made for all the settlements?
CREATE TABLE claims ( claim_id number, policy_id number, date_claim_made time, date_claim_settled time, amount_claimed number, amount_settled number ) CREATE TABLE customers ( customer_id number, customer_details text ) CREATE TABLE customer_policies ( policy_id number, customer_id number, policy_type_code text, start_date time, end_date time ) CREATE TABLE settlements ( settlement_id number, claim_id number, date_claim_made time, date_claim_settled time, amount_claimed number, amount_settled number, customer_policy_id number ) CREATE TABLE payments ( payment_id number, settlement_id number, payment_method_code text, date_payment_made time, amount_payment number )
SELECT SUM(amount_settled) FROM settlements
Name the rally base for rallye de france alsace
CREATE TABLE table_26005 ( "Round" real, "Finishing Date" text, "Rally Name" text, "Rally Base" text, "Surface" text, "Support Category" text )
SELECT "Rally Base" FROM table_26005 WHERE "Rally Name" = 'Rallye de France Alsace'
Which college is Jordan Phillips playing for?
CREATE TABLE table_name_85 ( college VARCHAR, player VARCHAR )
SELECT college FROM table_name_85 WHERE player = "jordan phillips"
What was the fastest lap time in the Escort Radar Warning 200?
CREATE TABLE table_72112 ( "Rd" real, "Name" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text )
SELECT "Fastest Lap" FROM table_72112 WHERE "Name" = 'Escort Radar Warning 200'
how many teams had a manner of departure due to there contract being terminated ?
CREATE TABLE table_203_450 ( id number, "team" text, "outgoing manager" text, "manner of departure" text, "date of vacancy" text, "replaced by" text, "date of appointment" text, "position in table" text )
SELECT COUNT("team") FROM table_203_450 WHERE "manner of departure" = 'contract terminated'
What is the country for the player Tiger Woods?
CREATE TABLE table_name_3 ( country VARCHAR, player VARCHAR )
SELECT country FROM table_name_3 WHERE player = "tiger woods"
Name the total number of troops per one million being 2.76
CREATE TABLE table_31482 ( "Country" text, "Number of Troops" real, "% of Total Troops" text, "Troops per one million population" text, "Troops per $1 billion ( USD ) GDP" text )
SELECT COUNT("Troops per one million population") FROM table_31482 WHERE "Troops per $1 billion ( USD ) GDP" = '2.76'
What is the link of rnaz that predicts an alignment of input?
CREATE TABLE table_34127 ( "Name" text, "Number of sequences Number of sequences: ." text, "Alignment Alignment: predicts an alignment , ." text, "Structure Structure: predicts structure , ." text, "Link" text )
SELECT "Link" FROM table_34127 WHERE "Alignment Alignment: predicts an alignment , ." = 'input' AND "Name" = 'rnaz'
When did the episode title 'Duet For One' air?
CREATE TABLE table_16360 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text )
SELECT "Original air date" FROM table_16360 WHERE "Title" = 'Duet for One'
What date is the 1:00 pm game at arrowhead stadium?
CREATE TABLE table_name_37 ( date VARCHAR, time___et__ VARCHAR, game_site VARCHAR )
SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium"
What club team did JArrod Maidens play for?
CREATE TABLE table_17204 ( "Round" real, "Overall" text, "Player" text, "Position" text, "Nationality" text, "Club team" text )
SELECT "Club team" FROM table_17204 WHERE "Player" = 'Jarrod Maidens'
Name the segment b for 167
CREATE TABLE table_15187735_13 ( segment_b VARCHAR, episode VARCHAR )
SELECT segment_b FROM table_15187735_13 WHERE episode = 167
Which highest wins number had Kawasaki as a team, 95 points, and a year prior to 1981?
CREATE TABLE table_74982 ( "Year" real, "Class" text, "Team" text, "Points" real, "Wins" real )
SELECT MAX("Wins") FROM table_74982 WHERE "Team" = 'kawasaki' AND "Points" = '95' AND "Year" < '1981'
What is the PBA team for roberto jabar who was picked before number 11?
CREATE TABLE table_65357 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text )
SELECT "PBA team" FROM table_65357 WHERE "Pick" < '11' AND "Player" = 'roberto jabar'
Cobden has more than 1487 against and what average of losses?
CREATE TABLE table_13985 ( "Club" text, "Wins" real, "Losses" real, "Draws" real, "Against" real )
SELECT AVG("Losses") FROM table_13985 WHERE "Club" = 'cobden' AND "Against" > '1487'
Which Team has a Score of 89-123?
CREATE TABLE table_43011 ( "Game" real, "Date" text, "Team" text, "Score" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_43011 WHERE "Score" = '89-123'
Which 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2?
CREATE TABLE table_name_70 ( coding VARCHAR, variant_id VARCHAR )
SELECT 5 AS ’utr_splice FROM table_name_70 WHERE coding = "1a 2" AND variant_id = "abd'1a 2"