instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
How much federal funding does Pecatonia Area School district get?
CREATE TABLE ndecoreexcel_math_grade8 ( year number, state text, all_students text, average_scale_score number ) CREATE TABLE finrev_fed_17 ( state_code number, idcensus number, school_district text, nces_id text, yr_data number, t_fed_rev number, c14 number, c25 number ) CREATE TABLE finrev_fed_key_17 ( state_code number, state text, #_records text )
SELECT t_fed_rev FROM finrev_fed_17 WHERE school_district LIKE "%Pecatonia Area%"
State with highest average math score
CREATE TABLE finrev_fed_17 ( state_code number, idcensus number, school_district text, nces_id text, yr_data number, t_fed_rev number, c14 number, c25 number ) CREATE TABLE finrev_fed_key_17 ( state_code number, state text, #_records text ) CREATE TABLE ndecoreexcel_math_grade8 ( year number, state text, all_students text, average_scale_score number )
SELECT state FROM ndecoreexcel_math_grade8 ORDER BY average_scale_score DESC LIMIT 1
Name the production code for theresa rebeck
CREATE TABLE table_25604014_9 ( production_code VARCHAR, written_by VARCHAR )
SELECT production_code FROM table_25604014_9 WHERE written_by = "Theresa Rebeck"
What is the coaster name that was opened in 1978, and have wooden track?
CREATE TABLE table_name_40 ( coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR )
SELECT coaster_name FROM table_name_40 WHERE year_opened = "1978" AND track = "wooden"
What is the description, code and the corresponding count of each service type?
CREATE TABLE Services ( Service_Type_Code VARCHAR ) CREATE TABLE Ref_Service_Types ( Service_Type_Description VARCHAR, Service_Type_Code VARCHAR )
SELECT T1.Service_Type_Description, T2.Service_Type_Code, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code
Name the result for goal # more than 4
CREATE TABLE table_name_92 ( result VARCHAR, goal__number INTEGER )
SELECT result FROM table_name_92 WHERE goal__number > 4
What is Set 5, when Date is Jun 26, and when Set 2 is 25-22?
CREATE TABLE table_name_46 ( set_5 VARCHAR, date VARCHAR, set_2 VARCHAR )
SELECT set_5 FROM table_name_46 WHERE date = "jun 26" AND set_2 = "25-22"
What label shows an Album of cover version v?
CREATE TABLE table_name_24 ( label VARCHAR, album VARCHAR )
SELECT label FROM table_name_24 WHERE album = "cover version v"
Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?
CREATE TABLE table_name_98 ( wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR )
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9
What is the total number on roll for Shelly Park school?
CREATE TABLE table_53507 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT COUNT("Roll") FROM table_53507 WHERE "Name" = 'shelly park school'
Which April has a Game of 84
CREATE TABLE table_name_54 ( april INTEGER, game VARCHAR )
SELECT MAX(april) FROM table_name_54 WHERE game = 84
How many dates have silverstone circuit
CREATE TABLE table_1140103_6 ( date VARCHAR, circuit VARCHAR )
SELECT COUNT(date) FROM table_1140103_6 WHERE circuit = "Silverstone"
Which round has a record of 5-3 (1)?
CREATE TABLE table_name_51 ( round INTEGER, record VARCHAR )
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
Which 2nd leg has pamesa valencia for team #2?
CREATE TABLE table_41692 ( "Team #1" text, "Agg." text, "Team #2" text, "1st leg" text, "2nd leg" text )
SELECT "2nd leg" FROM table_41692 WHERE "Team #2" = 'pamesa valencia'
Name the incumbent for district texas 12
CREATE TABLE table_18348 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Incumbent" FROM table_18348 WHERE "District" = 'Texas 12'
Which Draw has a Season of 2001 02, and Points larger than 47?
CREATE TABLE table_6836 ( "Season" text, "League" text, "Draw" real, "Lost" real, "Points" real, "Position" text )
SELECT SUM("Draw") FROM table_6836 WHERE "Season" = '2001–02' AND "Points" > '47'
Opponents of police, and a Venue of selayang municipal council stadium had what date?
CREATE TABLE table_35763 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Competition" text )
SELECT "Date" FROM table_35763 WHERE "Opponents" = 'police' AND "Venue" = 'selayang municipal council stadium'
When Nashville was the visiting team what was the lowest Attendance shown?
CREATE TABLE table_56287 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT MIN("Attendance") FROM table_56287 WHERE "Visitor" = 'nashville'
What is the name of the episode written by Sheila Lawrence & Henry Alonso Myers?
CREATE TABLE table_437 ( "Series #" real, "Season #" real, "Episode title" text, "Writer(s)" text, "Director" text, "U.S. viewers (millions)" text, "Original air date" text )
SELECT "Episode title" FROM table_437 WHERE "Writer(s)" = 'Sheila Lawrence & Henry Alonso Myers'
What competition has a goal number of 13?
CREATE TABLE table_name_49 ( competition VARCHAR, goal VARCHAR )
SELECT competition FROM table_name_49 WHERE goal = 13
which teams has the least wins ?
CREATE TABLE table_204_448 ( id number, "team" text, "winners" number, "runners-up" number, "years won" text, "years runner-up" text )
SELECT "team" FROM table_204_448 WHERE "winners" = (SELECT MIN("winners") FROM table_204_448)
The score in the final is 2 6, 6 2, 6 0, on what surface?
CREATE TABLE table_73921 ( "Outcome" text, "No." text, "Date" text, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT "Surface" FROM table_73921 WHERE "Score in the final" = '2–6, 6–2, 6–0'
What is Notes, when Bronze is 'Pasi Ikonen'?
CREATE TABLE table_12387 ( "Year" real, "Gold" text, "Silver" text, "Bronze" text, "Notes" text )
SELECT "Notes" FROM table_12387 WHERE "Bronze" = 'pasi ikonen'
what is the earliest first elected with the results re-elected in the district south carolina 3?
CREATE TABLE table_1341423_40 ( first_elected INTEGER, results VARCHAR, district VARCHAR )
SELECT MAX(first_elected) FROM table_1341423_40 WHERE results = "Re-elected" AND district = "South Carolina 3"
In what season was the conference record for the Pandas 15-1-1?
CREATE TABLE table_29292 ( "Season" text, "Coach" text, "Conf. Record" text, "Overall" text, "Standings" text, "Postseason" text )
SELECT "Season" FROM table_29292 WHERE "Conf. Record" = '15-1-1'
How many players are listed for the school/club team Washington?
CREATE TABLE table_20094 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text )
SELECT COUNT("Name") FROM table_20094 WHERE "School/Club Team" = 'Washington'
What was the score when the tie number was a replay and the home team was mansfield town?
CREATE TABLE table_65182 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Score" FROM table_65182 WHERE "Tie no" = 'replay' AND "Home team" = 'mansfield town'
What is the highest production code of the episodes having a US viewership of exactly 2.3?
CREATE TABLE table_30759 ( "No in. series" real, "No in. season" real, "Title" text, "Original air date" text, "Production Code" real, "U.S. viewers (millions)" text )
SELECT MAX("Production Code") FROM table_30759 WHERE "U.S. viewers (millions)" = '2.3'
What is the title of episode 155 in the series?
CREATE TABLE table_30194 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT "Title" FROM table_30194 WHERE "No. in series" = '155'
What are the region names affected by the storm with a number of deaths of least 10?
CREATE TABLE region ( region_name VARCHAR, region_id VARCHAR ) CREATE TABLE affected_region ( region_id VARCHAR, storm_id VARCHAR ) CREATE TABLE storm ( storm_id VARCHAR, number_deaths VARCHAR )
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10
What is the value for Lost when Drawn is 0, and Tries against is 41?
CREATE TABLE table_name_33 ( lost VARCHAR, drawn VARCHAR, tries_against VARCHAR )
SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41"
what is the total number of medals that india won in the asian youth games ?
CREATE TABLE table_203_747 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "total" FROM table_203_747 WHERE "nation" = 'india'
the difference between yelizaveta bryzhina 's time and ksenija balta 's time ?
CREATE TABLE table_204_401 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "react" number, "time" number, "notes" text )
SELECT ABS((SELECT "time" FROM table_204_401 WHERE "name" = 'yelizaveta bryzhina') - (SELECT "time" FROM table_204_401 WHERE "name" = 'ksenija balta'))
How many laps for robin montgomerie-charrington, and a Grid smaller than 15?
CREATE TABLE table_name_18 ( laps VARCHAR, driver VARCHAR, grid VARCHAR )
SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15
Is it live or studio before 1983?
CREATE TABLE table_name_98 ( live___studio VARCHAR, year INTEGER )
SELECT live___studio FROM table_name_98 WHERE year < 1983
What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion?
CREATE TABLE table_name_61 ( poles INTEGER, position VARCHAR, wins VARCHAR, top_5 VARCHAR )
SELECT MIN(poles) FROM table_name_61 WHERE wins = 0 AND top_5 = 0 AND position = "66th"
What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?
CREATE TABLE table_name_24 ( round INTEGER, position VARCHAR, pick__number VARCHAR, overall VARCHAR )
SELECT MAX(round) FROM table_name_24 WHERE pick__number = 11 AND overall < 414 AND position = "offensive tackle"
Which Website has a Frequency smaller than 760 and a Callsign of kkyx?
CREATE TABLE table_name_85 ( website VARCHAR, frequency VARCHAR, callsign VARCHAR )
SELECT website FROM table_name_85 WHERE frequency < 760 AND callsign = "kkyx"
When cancelled is the fastest qualifying where is the location?
CREATE TABLE table_26358264_2 ( location VARCHAR, fastest_qualifying VARCHAR )
SELECT location FROM table_26358264_2 WHERE fastest_qualifying = "Cancelled"
What was the record lowest temperature with a precipitation of 1.71 in.?
CREATE TABLE table_26558_1 ( record_low VARCHAR, precip VARCHAR )
SELECT record_low FROM table_26558_1 WHERE precip = "1.71 in."
Plot the total number by grouped by nationality as a bar graph, I want to list by the Y in ascending.
CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, Years_working int ) CREATE TABLE news_report ( journalist_ID int, Event_ID int, Work_Type text ) CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, Event_Attendance int )
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality ORDER BY COUNT(*)
What is the name of the driver in 1955?
CREATE TABLE table_57940 ( "Year" text, "Driver" text, "Constructor" text, "Category" text, "Location" text, "Report" text )
SELECT "Driver" FROM table_57940 WHERE "Year" = '1955'
Name the least attendance with carolina visitor
CREATE TABLE table_55962 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT MIN("Attendance") FROM table_55962 WHERE "Visitor" = 'carolina'
What is the result when there's less than 2 goals?
CREATE TABLE table_40025 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Result" FROM table_40025 WHERE "Goal" < '2'
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3
CREATE TABLE table_56992 ( "Name" text, "Latitude" real, "Longitude" real, "Diameter (km)" real, "Named after" text )
SELECT "Named after" FROM table_56992 WHERE "Diameter (km)" < '19.2' AND "Latitude" > '-37.5' AND "Longitude" < '67.3'
Who had highest points in game 5?
CREATE TABLE table_2730 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "High points" FROM table_2730 WHERE "Game" = '5'
What is the number of losses when the goal difference was -8, and position is smaller than 10?
CREATE TABLE table_name_37 ( losses VARCHAR, goal_difference VARCHAR, position VARCHAR )
SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 10
what is the total number of apps and goals for luther blissett ?
CREATE TABLE table_204_340 ( id number, "name" text, "year inducted" number, "position" text, "apps" number, "goals" number )
SELECT "apps" + "goals" FROM table_204_340 WHERE "name" = 'luther blissett'
Name the 2014 which has a 2003-04 of did not participate and a 2005 of did not participate
CREATE TABLE table_67074 ( "Competition" text, "1993\u2013 94" text, "1994\u2013 95" text, "1995\u2013 96" text, "1996\u2013 97" text, "1997\u2013 98" text, "1998\u2013 99" text, "1999\u2013 2000" text, "2000\u2013 01" text, "2001\u2013 02" text, "2002\u2013 03" text, "2003\u2013 04" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "2014" text )
SELECT "2014" FROM table_67074 WHERE "2003\u2013 04" = 'did not participate' AND "2005" = 'did not participate'
What position is Sal Martinez?
CREATE TABLE table_name_32 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_name_32 WHERE player = "sal martinez"
How many numbers were recorded on the fields goals of the Left End player?
CREATE TABLE table_28033 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT COUNT("Field goals") FROM table_28033 WHERE "Position" = 'Left end'
how many equivalent daily inflation rate with time required for prices to double being 3.7 days
CREATE TABLE table_18917 ( "Country" text, "Currency name" text, "Month with highest inflation rate" text, "Highest monthly inflation rate" text, "Equivalent daily inflation rate" text, "Time required for prices to double" text )
SELECT COUNT("Equivalent daily inflation rate") FROM table_18917 WHERE "Time required for prices to double" = '3.7 days'
For those records from the products and each product's manufacturer, show me about the distribution of name and the average of code , and group by attribute name in a bar chart, and order total number in descending order please.
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.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC
Name the recopa sudamericana 1992 for did not qualify for libertadores 1992 and round of 16 for bragantino
CREATE TABLE table_1165 ( "Team" text, "Copa Libertadores 1992" text, "Supercopa Sudamericana 1992" text, "Copa CONMEBOL 1992" text, "Recopa Sudamericana 1992" text, "Intercontinental Cup 1992" text )
SELECT "Recopa Sudamericana 1992" FROM table_1165 WHERE "Copa Libertadores 1992" = 'Did not qualify' AND "Copa CONMEBOL 1992" = 'Round of 16' AND "Team" = 'Bragantino'
What original air date was the episode with production code of 5.05?
CREATE TABLE table_28089666_1 ( original_air_date VARCHAR, production_code VARCHAR )
SELECT original_air_date FROM table_28089666_1 WHERE production_code = "5.05"
how many tv shows did natalia oreiro between 1998 and 2002 ?
CREATE TABLE table_204_871 ( id number, "ano" text, "title" text, "role" text, "channel" text, "notes" text )
SELECT COUNT("title") FROM table_204_871 WHERE "ano" >= 1998 AND "ano" <= 2002
What was the transfer fee for the player with an ends of 2007?
CREATE TABLE table_name_79 ( transfer_fee VARCHAR, ends VARCHAR )
SELECT transfer_fee FROM table_name_79 WHERE ends = 2007
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor. Visualize by pie chart.
CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text )
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
What is the score for Greg Norman
CREATE TABLE table_12721 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_12721 WHERE "Player" = 'greg norman'
Which venue has 16 against?
CREATE TABLE table_name_5 ( venue VARCHAR, against VARCHAR )
SELECT venue FROM table_name_5 WHERE against = 16
What is the Kashmiri word for the Indonesian word senin?
CREATE TABLE table_name_90 ( kashmiri VARCHAR, indonesian VARCHAR )
SELECT kashmiri FROM table_name_90 WHERE indonesian = "senin"
What was the winning car's chassis for the 1982 season?
CREATE TABLE table_51569 ( "Season" text, "Champion" text, "Team" text, "Chassis" text, "Engine" text )
SELECT "Chassis" FROM table_51569 WHERE "Season" = '1982'
What is the score when TSV Siegen was the runner-up?
CREATE TABLE table_name_59 ( score VARCHAR, runners_up VARCHAR )
SELECT score FROM table_name_59 WHERE runners_up = "tsv siegen"
What is the 2007 value with a 1r in 2009?
CREATE TABLE table_63515 ( "Tournament" 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_63515 WHERE "2009" = '1r'
What player has a total of 158/
CREATE TABLE table_name_54 ( player VARCHAR, total VARCHAR )
SELECT player FROM table_name_54 WHERE total = "158"
What are the memories and carriers of phones.
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, SUM(Memory_in_G) FROM phone GROUP BY Carrier
What were the years active of the player from New Zealand with more than 11 caps?
CREATE TABLE table_14622 ( "Player" text, "Country" text, "Caps" real, "Goals" text, "Years Active" text )
SELECT "Years Active" FROM table_14622 WHERE "Caps" > '11' AND "Country" = 'new zealand'
What is Score, when Date is 10 July 2011?
CREATE TABLE table_44803 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Score" FROM table_44803 WHERE "Date" = '10 july 2011'
Show all allergy type with number of students affected with a bar chart.
CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) )
SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType
What country has a P of GK?
CREATE TABLE table_17596418_4 ( country VARCHAR, p VARCHAR )
SELECT country FROM table_17596418_4 WHERE p = "GK"
What is the round on 30 June with a.z.k./roc-comp tition a.z.k./roc-comp tition as the winning team?
CREATE TABLE table_79109 ( "Round" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning team" text )
SELECT "Round" FROM table_79109 WHERE "Winning team" = 'a.z.k./roc-compétition a.z.k./roc-compétition' AND "Date" = '30 june'
What livery belongs to the steam Locomotive type builder that was building before 1989?
CREATE TABLE table_name_69 ( livery VARCHAR, year_built VARCHAR, locomotive_type VARCHAR )
SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = "steam"
Who were the winners of the Women's Doubles in the years after 2009?
CREATE TABLE table_42086 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text )
SELECT "Women's doubles" FROM table_42086 WHERE "Year" > '2009'
What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?
CREATE TABLE table_50731 ( "BR No." text, "Lot No." real, "Date" real, "Built at" text, "Boiler type" text )
SELECT COUNT("Date") FROM table_50731 WHERE "Boiler type" = 'forward topfeed' AND "Built at" = 'crewe' AND "Lot No." < '187'
WHAT IS THE RESULT OF THE GAME ON APRIL 23?
CREATE TABLE table_name_60 ( result VARCHAR, date VARCHAR )
SELECT result FROM table_name_60 WHERE date = "april 23"
What programs were held in charleston, illinois?
CREATE TABLE table_16275828_4 ( program VARCHAR, location VARCHAR )
SELECT program FROM table_16275828_4 WHERE location = "Charleston, Illinois"
What is the title of the episode with a production code of 2j5504?
CREATE TABLE table_27450976_1 ( title VARCHAR, production_code VARCHAR )
SELECT title FROM table_27450976_1 WHERE production_code = "2J5504"
What was the score for t9 place for Harold Mcspaden?
CREATE TABLE table_name_9 ( score VARCHAR, place VARCHAR, player VARCHAR )
SELECT score FROM table_name_9 WHERE place = "t9" AND player = "harold mcspaden"
Which Conference Semifinals has a Record of 55 27?
CREATE TABLE table_name_73 ( conference_semifinals VARCHAR, record VARCHAR )
SELECT conference_semifinals FROM table_name_73 WHERE record = "55–27"
Return all reviewer names and movie names together in a single list.
CREATE TABLE Movie ( name VARCHAR, title VARCHAR ) CREATE TABLE Reviewer ( name VARCHAR, title VARCHAR )
SELECT name FROM Reviewer UNION SELECT title FROM Movie
What is the lowest apps for rank 3 and 0% wins?
CREATE TABLE table_64101 ( "Rank" real, "Team" text, "Apps" real, "Record" text, "Win %" real )
SELECT MIN("Apps") FROM table_64101 WHERE "Rank" = '3' AND "Win %" < '0'
How many weeks has the opponent been san francisco 49ers?
CREATE TABLE table_name_65 ( week VARCHAR, opponent VARCHAR )
SELECT COUNT(week) FROM table_name_65 WHERE opponent = "san francisco 49ers"
What is listed in new points when status is second round lost to xavier malisse?
CREATE TABLE table_31230 ( "Seed" real, "Rank" real, "Player" text, "Points" real, "Points defending" real, "Points won" real, "New points" real, "Status" text )
SELECT MIN("New points") FROM table_31230 WHERE "Status" = 'Second round lost to Xavier Malisse'
What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?
CREATE TABLE table_3456 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )
SELECT "Top 10" FROM table_3456 WHERE "Team(s)" = '#10 Phil Parsons Racing' AND "Avg. Finish" = '22.9'
What is the competition when 2nd leg is 0 8?
CREATE TABLE table_502 ( "Season" text, "Competition" text, "Round" text, "Club" text, "1st leg" text, "2nd leg" text, "Aggregate" text )
SELECT "Competition" FROM table_502 WHERE "2nd leg" = '0–8'
Which Score has a Competition of uefa euro 2012 qualifying?
CREATE TABLE table_10046 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Score" FROM table_10046 WHERE "Competition" = 'uefa euro 2012 qualifying'
How many Bronzes that has a Nation of italy?
CREATE TABLE table_name_75 ( bronze INTEGER, nation VARCHAR )
SELECT MAX(bronze) FROM table_name_75 WHERE nation = "italy"
which Score has a Partnering of dmitry tursunov?
CREATE TABLE table_name_63 ( score VARCHAR, partnering VARCHAR )
SELECT score FROM table_name_63 WHERE partnering = "dmitry tursunov"
What was the Home team's score when the Venue was mcg?
CREATE TABLE table_33053 ( "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_33053 WHERE "Venue" = 'mcg'
A bar chart for returning the number of the categories of music festivals that have the result 'Awarded'.
CREATE TABLE music_festival ( ID int, Music_Festival text, Date_of_ceremony text, Category text, Volume int, Result text ) CREATE TABLE artist ( Artist_ID int, Artist text, Age int, Famous_Title text, Famous_Release_date text ) CREATE TABLE volume ( Volume_ID int, Volume_Issue text, Issue_Date text, Weeks_on_Top real, Song text, Artist_ID int )
SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category
Which athlete represented the country of egypt?
CREATE TABLE table_13785 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text )
SELECT "Athlete" FROM table_13785 WHERE "Country" = 'egypt'
What is the coast guard cross when you recieve the navy distinguished service medal?
CREATE TABLE table_24084 ( "Medal of Honor" text, "Coast Guard Cross" text, "Navy Cross" text, "Distinguished Service Cross" text, "Air Force Cross" text, "Homeland Security Distinguished Service Medal" text )
SELECT "Coast Guard Cross" FROM table_24084 WHERE "Distinguished Service Cross" = 'Navy Distinguished Service Medal'
Count the Earnings per share ( ) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5?
CREATE TABLE table_name_34 ( earnings_per_share__ INTEGER, ebit__us_$m_ VARCHAR, year_to_april VARCHAR, revenue__us_$million_ VARCHAR )
SELECT SUM(earnings_per_share__) AS ¢_ FROM table_name_34 WHERE year_to_april < 2012 AND revenue__us_$million_ = 432.6 AND ebit__us_$m_ < 150.5
For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?
CREATE TABLE table_1708014_1 ( top_5 INTEGER, top_10 VARCHAR, team_s_ VARCHAR )
SELECT MAX(top_5) FROM table_1708014_1 WHERE top_10 = 5 AND team_s_ = "#40 Chip Ganassi Racing"
What year did the San Agustin gym open?
CREATE TABLE table_name_44 ( year_opened VARCHAR, arena_venue VARCHAR )
SELECT year_opened FROM table_name_44 WHERE arena_venue = "san agustin gym"
Which Congress has a # of cosponsors of 19?
CREATE TABLE table_name_51 ( congress VARCHAR, _number_of_cosponsors VARCHAR )
SELECT congress FROM table_name_51 WHERE _number_of_cosponsors = 19
Draw a bar chart about the distribution of All_Road and School_ID , order by the Y-axis from low to high please.
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 All_Road, School_ID FROM basketball_match ORDER BY School_ID
What is the main legion base that disbanded 70 xx?
CREATE TABLE table_26713 ( "Legion no and title" text, "Main legion base" text, "Emblem" text, "Date founded/ founder" text, "Date disband" text, "Castra legionaria (legion bases) * = main base. Start date 31 BC if unspecified" text, "Notes" text )
SELECT "Main legion base" FROM table_26713 WHERE "Date disband" = '70 XX'
What is the Pick # with an Overall of 19?
CREATE TABLE table_36615 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT MAX("Pick #") FROM table_36615 WHERE "Overall" = '19'
How many bullet tips colors had other features of a blue band on case base?
CREATE TABLE table_1036189_1 ( bullet_tip_color VARCHAR, other_features VARCHAR )
SELECT COUNT(bullet_tip_color) FROM table_1036189_1 WHERE other_features = "Blue band on case base"