instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
What is the home score with a crowd larger than 25,603?
CREATE TABLE table_56904 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team score" FROM table_56904 WHERE "Crowd" > '25,603'
Which driver won the Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_61 ( winner VARCHAR, circuit VARCHAR )
SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit"
total number of players that signed in march ?
CREATE TABLE table_204_783 ( id number, "position" text, "player" text, "free agency\ntag" text, "date signed" text, "2013 team" text )
SELECT COUNT("player") FROM table_204_783 WHERE "date signed" = 3
What is the Hometown for Villanova College?
CREATE TABLE table_name_11 ( hometown VARCHAR, college VARCHAR )
SELECT hometown FROM table_name_11 WHERE college = "villanova"
Show me a bar chart comparing the total number of captains of different classes.
CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text )
SELECT Class, COUNT(Class) FROM captain GROUP BY Class
what's the district with candidates being harry lane englebright (r) unopposed
CREATE TABLE table_72430 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "District" FROM table_72430 WHERE "Candidates" = 'Harry Lane Englebright (R) Unopposed'
Whatis the total number of half marathon (mens) that represented kazakhstan?
CREATE TABLE table_11391954_3 ( Half VARCHAR, country VARCHAR )
SELECT COUNT(Half) AS marathon__mens_ FROM table_11391954_3 WHERE country = "Kazakhstan"
What are the prizes when 1 is the number of winning tickets?
CREATE TABLE table_20195922_3 ( prize__eur_ VARCHAR, number_of_winning_tickets VARCHAR )
SELECT prize__eur_ FROM table_20195922_3 WHERE number_of_winning_tickets = 1
how many jamaicans were granted british citizenship in 1998 ?
CREATE TABLE table_203_467 ( id number, "year" number, "numer of jamaicans\ngranted british\ncitizenship" number, "naturalisation\nby residence" number, "naturalisation\nby marriage" number, "registration\nof a minor child" number, "registration\nby other means" number )
SELECT "numer of jamaicans\ngranted british\ncitizenship" FROM table_203_467 WHERE "year" = 1998
What is the First Publisher prior to 1999?
CREATE TABLE table_64833 ( "Japanese Title" text, "English Title" text, "Year" real, "First publisher" text, "ISBN" text )
SELECT "First publisher" FROM table_64833 WHERE "Year" < '1999'
What was the result of the 2007-08 season for the city of Ferrara?
CREATE TABLE table_49423 ( "Club" text, "City" text, "Stadium" text, "Capacity" real, "2007\u201308 season" text )
SELECT "2007\u201308 season" FROM table_49423 WHERE "City" = 'ferrara'
What is the average account balance of customers with credit score below 50 for the different account types. Visualize by bar chart.
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) ) 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 )
SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type
When the finish was t31 what was the To par?
CREATE TABLE table_name_28 ( to_par VARCHAR, finish VARCHAR )
SELECT to_par FROM table_name_28 WHERE finish = "t31"
How many positions have a total time of 1:30.4135?
CREATE TABLE table_2758 ( "Pos" text, "##" real, "Name" text, "Team" text, "Lap One" text, "Lap Two" text, "Lap Three" text, "Lap Four" text, "Total Time" text, "Avg. Speed" text )
SELECT COUNT("Pos") FROM table_2758 WHERE "Total Time" = '1:30.4135'
Does Detroit have a soccer team?
CREATE TABLE table_44557 ( "School" text, "Bask" text, "Golf" text, "Soccer" text, "Soft" text, "Swimming" text, "Tennis" text, "Indoor track" text, "Volleyball" text )
SELECT "Soccer" FROM table_44557 WHERE "School" = 'detroit'
What is the average number of draws for Mortlake club when they have less than 0 wins?
CREATE TABLE table_64313 ( "Club" text, "Wins" real, "Losses" real, "Draws" real, "Against" real )
SELECT AVG("Draws") FROM table_64313 WHERE "Club" = 'mortlake' AND "Wins" < '0'
Which country has a rank of 5?
CREATE TABLE table_1111 ( "Rank" real, "Country" text, "UNWTO Region" text, "International tourist arrivals (2012)" text, "International tourist arrivals (2011)" text, "Change (2011 to 2012)" text, "Change (2010 to 2011)" text )
SELECT "Country" FROM table_1111 WHERE "Rank" = '5'
Which Type has a Name of edson ratinho?
CREATE TABLE table_47406 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text )
SELECT "Type" FROM table_47406 WHERE "Name" = 'edson ratinho'
What away team had a score of 7.9 (51)?
CREATE TABLE table_51202 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text )
SELECT "Away team" FROM table_51202 WHERE "Away team score" = '7.9 (51)'
With an original artist names Bette Midler, what is the order number?
CREATE TABLE table_21501565_1 ( order__number VARCHAR, original_artist VARCHAR )
SELECT COUNT(order__number) FROM table_21501565_1 WHERE original_artist = "Bette Midler"
What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points?
CREATE TABLE table_4051 ( "Year" real, "Host Nation(s)" text, "Final Venue" text, "Winner" text, "Result" text, "Runner-up" text )
SELECT "Final Venue" FROM table_4051 WHERE "Host Nation(s)" = 'England' AND "Runner-up" = '[[|]] 4 points' AND "Winner" = '[[|]] 6 points'
In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?
CREATE TABLE table_69873 ( "Year" text, "Team" text, "Number" text, "BB +HBP" real, "BA (Place)" text )
SELECT "BA (Place)" FROM table_69873 WHERE "BB +HBP" > '49' AND "Team" = 'seibu lions' AND "Year" = '1992'
what are the number of times she came in 2nd position for the european championships ?
CREATE TABLE table_203_651 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT COUNT(*) FROM table_203_651 WHERE "position" = 2 AND "competition" = 'european championships'
What's the opponent's venue result when the opponent is tennessee?
CREATE TABLE table_48149 ( "Missouri vs." text, "Overall Record" text, "at Columbia" text, "at Opponent's Venue" text, "at Neutral Site" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text, "Since Joining SEC" text )
SELECT "at Opponent's Venue" FROM table_48149 WHERE "Missouri vs." = 'tennessee'
When was the attendance at a venue bigger than 35,151?
CREATE TABLE table_name_36 ( date VARCHAR, crowd INTEGER )
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151
Name the publication date when the fictional date is 2112
CREATE TABLE table_name_25 ( publication_date VARCHAR, fictional_date VARCHAR )
SELECT publication_date FROM table_name_25 WHERE fictional_date = "2112"
Show the average transaction amount for different transaction types.
CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) )
SELECT transaction_type_code, AVG(amount_of_transaction) FROM Transactions GROUP BY transaction_type_code
Plot the total number by grouped by country as a bar graph, and order by the y axis from low to high please.
CREATE TABLE member ( Member_ID int, Name text, Country text, College_ID int ) CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text )
SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY COUNT(*)
Which reign is the most common among 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 FROM wrestler GROUP BY reign ORDER BY COUNT(*) DESC LIMIT 1
What was the highest amount of laps for class c1 and driver Derek Bell?
CREATE TABLE table_name_73 ( laps INTEGER, class VARCHAR, driver VARCHAR )
SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell"
Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?
CREATE TABLE table_43793 ( "Region (year)" text, "No. 1" text, "No. 2" text, "No. 3" text, "No. 4" text, "No. 5" text, "No. 6" text, "No. 7" text, "No. 8" text, "No. 9" text, "No. 10" text )
SELECT "No. 10" FROM table_43793 WHERE "No. 8" = 'jackson' AND "No. 9" = 'jayden'
Before the year 2012, what award was given to the artist in the category of revelaci n pop del a o?
CREATE TABLE table_48512 ( "Year" real, "Award" text, "Nominated Work" text, "Category" text, "Result" text )
SELECT "Award" FROM table_48512 WHERE "Year" < '2012' AND "Category" = 'revelación pop del año'
What party did hilda solis represent?
CREATE TABLE table_22126 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT "Party" FROM table_22126 WHERE "Incumbent" = 'Hilda Solis'
What is the division for the division semifinals playoffs?
CREATE TABLE table_16351 ( "Year" text, "Division" text, "League" text, "Reg. Season" text, "Playoffs" text, "Avg. Attendance" real )
SELECT "Division" FROM table_16351 WHERE "Playoffs" = 'Division Semifinals'
What was the game result on November 29, 1959?
CREATE TABLE table_7829 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT "Result" FROM table_7829 WHERE "Date" = 'november 29, 1959'
For those records from the products and each product's manufacturer, find name and price , and group by attribute founder, and visualize them by a bar chart, and sort by the Y 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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Price
when was garibaldets ( ) launched?
CREATE TABLE table_4476 ( "Number" text, "Name" text, "Meaning" text, "Fleet" text, "Launched" text )
SELECT "Launched" FROM table_4476 WHERE "Name" = 'garibaldets (гарибальдиец)'
in the ft pct .667 what is the number of gp-gs
CREATE TABLE table_23817012_6 ( gp_gs VARCHAR, ft_pct VARCHAR )
SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = ".667"
Name the replacced by with ascoli
CREATE TABLE table_17275810_7 ( replaced_by VARCHAR, team VARCHAR )
SELECT replaced_by FROM table_17275810_7 WHERE team = "Ascoli"
What was the attendance in week 8?
CREATE TABLE table_14875671_1 ( attendance INTEGER, week VARCHAR )
SELECT MAX(attendance) FROM table_14875671_1 WHERE week = 8
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the headquarter , and group by attribute headquarter, display y axis from high to low order.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
CREATE TABLE table_name_84 ( soap_opera VARCHAR, duration VARCHAR, actor VARCHAR )
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli"
What was the Outcome of the match played on Hard (i) Surface?
CREATE TABLE table_7321 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT "Outcome" FROM table_7321 WHERE "Surface" = 'hard (i)'
Tell me the position for pick of 146
CREATE TABLE table_name_7 ( position VARCHAR, pick VARCHAR )
SELECT position FROM table_name_7 WHERE pick = "146"
Who is listed under mens singles when womens has wang nan zhang yining?
CREATE TABLE table_30306 ( "Year Location" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text )
SELECT "Mens Singles" FROM table_30306 WHERE "Womens Doubles" = 'Wang Nan Zhang Yining'
what are all the record where date is january 21
CREATE TABLE table_18753 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Record" FROM table_18753 WHERE "Date" = 'January 21'
what's the score where record is 35 33
CREATE TABLE table_17347 ( "#" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text, "Streak" text )
SELECT "Score" FROM table_17347 WHERE "Record" = '35–33'
What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?
CREATE TABLE table_35934 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text )
SELECT MAX("Round") FROM table_35934 WHERE "Pick" < '261' AND "Position" = 'halfback' AND "Player" = 'ed smith'
What is the Place of the Player with a Score of 67?
CREATE TABLE table_78597 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_78597 WHERE "Score" = '67'
What is Player, when Round is less than 6, and when Pick is '69'?
CREATE TABLE table_9992 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text )
SELECT "Player" FROM table_9992 WHERE "Round" < '6' AND "Pick" = '69'
What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?
CREATE TABLE table_6273 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT "Score" FROM table_6273 WHERE "Decision" = 'parent' AND "Home" = 'philadelphia' AND "Visitor" = 'pittsburgh'
What is the resolution of the network Carismatv?
CREATE TABLE table_35508 ( "Dish" text, "Callsign" text, "Network" text, "Resolution" text, "City of License" text, "Official Website" text )
SELECT "Resolution" FROM table_35508 WHERE "Network" = 'carismatv'
Who was the supporting actress in 'For Whom the Bell Tolls'?
CREATE TABLE table_24225238_1 ( supporting_actress VARCHAR, film VARCHAR )
SELECT supporting_actress FROM table_24225238_1 WHERE film = "For Whom the Bell Tolls"
How many years was the 400 m event in the olympic games?
CREATE TABLE table_42382 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text )
SELECT COUNT("Year") FROM table_42382 WHERE "Competition" = 'olympic games' AND "Event" = '400 m'
Name the home team score when the away team is south melbourne
CREATE TABLE table_53089 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text )
SELECT "Home team score" FROM table_53089 WHERE "Away team" = 'south melbourne'
What is the lowest Total for Italy with less than 0 silver?
CREATE TABLE table_name_32 ( total INTEGER, nation VARCHAR, silver VARCHAR )
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
Show all statement id and the number of accounts for each statement.
CREATE TABLE documents_with_expenses ( document_id number, budget_type_code text, document_details text ) CREATE TABLE projects ( project_id number, project_details text ) CREATE TABLE statements ( statement_id number, statement_details text ) CREATE TABLE ref_budget_codes ( budget_type_code text, budget_type_description text ) CREATE TABLE accounts ( account_id number, statement_id number, account_details text ) CREATE TABLE documents ( document_id number, document_type_code text, project_id number, document_date time, document_name text, document_description text, other_details text ) CREATE TABLE ref_document_types ( document_type_code text, document_type_name text, document_type_description text )
SELECT statement_id, COUNT(*) FROM accounts GROUP BY statement_id
Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?
CREATE TABLE table_name_74 ( section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR )
SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38"
List the players for team bryn s if (sweden).
CREATE TABLE table_2850912_12 ( player VARCHAR, college_junior_club_team VARCHAR )
SELECT player FROM table_2850912_12 WHERE college_junior_club_team = "Brynäs IF (Sweden)"
Which Year is the highest one that has a Work of the clone, and an Award of contigo award?
CREATE TABLE table_name_8 ( year INTEGER, work VARCHAR, award VARCHAR )
SELECT MAX(year) FROM table_name_8 WHERE work = "the clone" AND award = "contigo award"
Who does Yamaha Construct for?
CREATE TABLE table_4679 ( "Team" text, "Constructor" text, "Motorcycle" text, "Rider" text, "Rounds" text )
SELECT "Team" FROM table_4679 WHERE "Constructor" = 'yamaha'
how many schools are only charter ?
CREATE TABLE table_203_416 ( id number, "school name" text, "city" text, "grades" text, "establishment" number, "charter" text )
SELECT COUNT("school name") FROM table_203_416 WHERE "charter" = 'charter'
who appeared on more albums , maccoll or kornog ?
CREATE TABLE table_204_268 ( id number, "album/single" text, "performer" text, "year" number, "variant" text, "notes" text )
SELECT "performer" FROM table_204_268 WHERE "performer" IN ('ewan maccoll', 'kornog') GROUP BY "performer" ORDER BY COUNT(*) DESC LIMIT 1
How many companies that are not headquartered in the United States for each main industry? Show me a bar chart, and could you display by the total number from high to low?
CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int ) CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE company ( Company_ID int, Rank int, Company text, Headquarters text, Main_Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value real )
SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE Headquarters <> 'USA' GROUP BY Main_Industry ORDER BY COUNT(Main_Industry) DESC
Which Centennial has a del Pueblo of 1986?
CREATE TABLE table_75759 ( "Information" text, "Altade\u00f1a" text, "Aprende" text, "Centennial" text, "Kyrene MS" text, "del Pueblo" text )
SELECT "Centennial" FROM table_75759 WHERE "del Pueblo" = '1986'
What year is Jiyai Shin the champion?
CREATE TABLE table_18004 ( "Year" real, "Dates" text, "Champion" text, "Score" real, "To par" text, "Margin of victory" text, "Purse ( $ )" real, "Winners share ($)" real )
SELECT COUNT("Year") FROM table_18004 WHERE "Champion" = 'Jiyai Shin'
How many voters were in Manhattan when 181,639 people voted in the Bronx?
CREATE TABLE table_11501 ( "party" text, "Manhattan" text, "The Bronx" text, "Brooklyn" text, "Queens" text, "Richmond [Staten Is.]" text, "Total" real )
SELECT "Richmond [Staten Is.]" FROM table_11501 WHERE "The Bronx" = '181,639'
List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
CREATE TABLE assignedto ( scientist number, project text ) CREATE TABLE projects ( code text, name text, hours number ) CREATE TABLE scientists ( ssn number, name text )
SELECT T1.name, T3.name, T3.hours FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist JOIN projects AS T3 ON T2.project = T3.code ORDER BY T3.name, T1.name
Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
CREATE TABLE table_64812 ( "Class" text, "Railway number(s)" text, "DRG number(s)" text, "Quantity" real, "Year(s) of manufacture" text, "Axle arrangement ( UIC ) Bauart" text )
SELECT "Quantity" FROM table_64812 WHERE "Axle arrangement ( UIC ) Bauart" = 'c n2t' AND "DRG number(s)" = '99 093'
Compare the average of artists' age by country in a bar graph.
CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real )
SELECT Country, AVG(Age) FROM artist GROUP BY Country
What is the average week for the game against baltimore colts with less than 41,062 in attendance?
CREATE TABLE table_name_12 ( week INTEGER, opponent VARCHAR, attendance VARCHAR )
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062
What's the name of the episode associated with Nick production number 342?
CREATE TABLE table_28767 ( "Season #" real, "Series #" real, "Episode title" text, "Original air date" text, "Nick prod. #" real )
SELECT "Episode title" FROM table_28767 WHERE "Nick prod. #" = '342'
When 228 is the lap and chip ganassi racing is the team what is the race time?
CREATE TABLE table_1771753_3 ( race_time VARCHAR, team VARCHAR, laps VARCHAR )
SELECT race_time FROM table_1771753_3 WHERE team = "Chip Ganassi Racing" AND laps = "228"
List all the names of schools with an endowment amount smaller than or equal to 10.
CREATE TABLE endowment ( endowment_id number, school_id number, donator_name text, amount number ) CREATE TABLE budget ( school_id number, year number, budgeted number, total_budget_percent_budgeted number, invested number, total_budget_percent_invested number, budget_invested_percent text ) CREATE TABLE school ( school_id text, school_name text, location text, mascot text, enrollment number, ihsaa_class text, ihsaa_football_class text, county text )
SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING SUM(T1.amount) <= 10
What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?
CREATE TABLE table_name_88 ( Id VARCHAR )
SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments"
What is the average number of draws for Al Ahly wins over 59?
CREATE TABLE table_name_1 ( draws INTEGER, al_ahly_wins INTEGER )
SELECT AVG(draws) FROM table_name_1 WHERE al_ahly_wins > 59
What is the number of the tax supervising and conservation bill?
CREATE TABLE table_256286_23 ( meas_num INTEGER, description VARCHAR )
SELECT MIN(meas_num) FROM table_256286_23 WHERE description = "Tax Supervising and Conservation Bill"
What is the weight for the player who is 6' 2'?
CREATE TABLE table_1009 ( "Player" text, "Position" text, "Games started" text, "Hometown" text, "Height" text, "Weight" real, "Class" text, "Prior experience" text )
SELECT MAX("Weight") FROM table_1009 WHERE "Height" = '6'' 2'
What is the Total of Player Craig Stadler?
CREATE TABLE table_name_56 ( total INTEGER, player VARCHAR )
SELECT AVG(total) FROM table_name_56 WHERE player = "craig stadler"
What is the film title used for nomination with the original title sedamdeset i dva dana?
CREATE TABLE table_name_65 ( film_title_used_in_nomination VARCHAR, original_title VARCHAR )
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana"
How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?
CREATE TABLE table_name_19 ( height__cm_ VARCHAR, jersey__number VARCHAR, name VARCHAR )
SELECT COUNT(height__cm_) FROM table_name_19 WHERE jersey__number < 16 AND name = "mark fusco"
What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
CREATE TABLE table_50300 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT COUNT("Bronze") FROM table_50300 WHERE "Gold" > '0' AND "Rank" = '4' AND "Total" > '4'
what is the number of pieces where the person is charley hoffman
CREATE TABLE table_28498999_6 ( reset_points VARCHAR, player VARCHAR )
SELECT COUNT(reset_points) FROM table_28498999_6 WHERE player = "Charley Hoffman"
What is the Tie no when Wimbledon is the home team?
CREATE TABLE table_65346 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Tie no" FROM table_65346 WHERE "Home team" = 'wimbledon'
Which Venue has Against smaller than 6?
CREATE TABLE table_62536 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT "Venue" FROM table_62536 WHERE "Against" < '6'
What is the location attendance of the game with a 27-22 record?
CREATE TABLE table_38827 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_38827 WHERE "Record" = '27-22'
What's the number of the game played on January 2, 1936?
CREATE TABLE table_39660 ( "Number" real, "Result" text, "Date" text, "Score" text, "Opponent" text, "Record" text )
SELECT MIN("Number") FROM table_39660 WHERE "Date" = 'january 2, 1936'
Who was the Semi-Finalist #2 in 2007?
CREATE TABLE table_name_59 ( semi_finalist__number2 VARCHAR, year VARCHAR )
SELECT semi_finalist__number2 FROM table_name_59 WHERE year = "2007"
on what album did the single old habits die hard appear ?
CREATE TABLE table_200_22 ( id number, "year" number, "single" text, "peak chart positions\nger" number, "peak chart positions\nire" number, "peak chart positions\nuk" number, "peak chart positions\nus" number, "peak chart positions\nus\nmain" number, "peak chart positions\nus\ndance" number, "certifications\n(sales thresholds)" number, "album" text )
SELECT "year" FROM table_200_22 WHERE "single" = '"old habits die hard"'
What time was the fastest lap during Stoh's 200 in 1982?
CREATE TABLE table_name_74 ( fastest_lap VARCHAR, name VARCHAR )
SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200"
What record has montreal, qc as the location, with boston bruins as the visitor?
CREATE TABLE table_name_14 ( record VARCHAR, location VARCHAR, visitor VARCHAR )
SELECT record FROM table_name_14 WHERE location = "montreal, qc" AND visitor = "boston bruins"
What was the method used when the opponent was Tyson Griffin?
CREATE TABLE table_11808 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" text, "Time" text, "Location" text )
SELECT "Method" FROM table_11808 WHERE "Opponent" = 'tyson griffin'
What is the sexual abuse rate where the conflict is the Burundi Civil War?
CREATE TABLE table_72689 ( "Conflict" text, "United Nations Mission" text, "Sexual abuse 1" real, "Murder 2" real, "Extortion/Theft 3" text )
SELECT MAX("Sexual abuse 1") FROM table_72689 WHERE "Conflict" = 'Burundi Civil War'
Which district has John Culpepper (f) as the vacator?
CREATE TABLE table_225093_4 ( district VARCHAR, vacator VARCHAR )
SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)"
how many canadian swimmers were there ?
CREATE TABLE table_204_160 ( id number, "rank" number, "name" text, "nationality" text, "time" text, "notes" text )
SELECT COUNT("name") FROM table_204_160 WHERE "nationality" = 'canada'
What is every value for passing yards per game if rushing yards per game is 113.6?
CREATE TABLE table_29554 ( "Season" text, "Points per Game" text, "Total Yards per Game" text, "Rushing Yards per Game" text, "Passing Yards per Game" text, "Sacks" text, "Interceptions" text )
SELECT "Passing Yards per Game" FROM table_29554 WHERE "Rushing Yards per Game" = '113.6'
If the call sign is DXYR, what is the branding?
CREATE TABLE table_19874169_3 ( branding VARCHAR, callsign VARCHAR )
SELECT branding FROM table_19874169_3 WHERE callsign = "DXYR"
Who is the player from Spain that has a +2 to par?
CREATE TABLE table_name_44 ( player VARCHAR, to_par VARCHAR, country VARCHAR )
SELECT player FROM table_name_44 WHERE to_par = "+2" AND country = "spain"
Which Opponent has a Record of 38 20 12 2?
CREATE TABLE table_75246 ( "Game" real, "March" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT "Opponent" FROM table_75246 WHERE "Record" = '38–20–12–2'
Who was the home team at the Nuggets game that had a score of 116 105?
CREATE TABLE table_name_24 ( home VARCHAR, score VARCHAR )
SELECT home FROM table_name_24 WHERE score = "116–105"