instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?
CREATE TABLE table_34592 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT MIN("Lost") FROM table_34592 WHERE "Position" > '6' AND "Drawn" = '7' AND "Points" < '15'
How many people attended the game where the home team scored 8.10 (58)?
CREATE TABLE table_56961 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MAX("Crowd") FROM table_56961 WHERE "Home team score" = '8.10 (58)'
What is High Points, when High Rebounds is 'Dwight Howard (16)'?
CREATE TABLE table_76857 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT "High points" FROM table_76857 WHERE "High rebounds" = 'dwight howard (16)'
Show the minimum, average, and maximum age of all students.
CREATE TABLE Student ( age INTEGER )
SELECT MIN(age), AVG(age), MAX(age) FROM Student
who were the top 3 finishers in the 2005 belgian grand prix ?
CREATE TABLE table_202_179 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number )
SELECT "driver" FROM table_202_179 ORDER BY "points" DESC LIMIT 3
What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?
CREATE TABLE table_78664 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Location" text )
SELECT "Result" FROM table_78664 WHERE "Location" = 'riverfront stadium' AND "Opponent" = 'miami dolphins'
what is the record for score 1-3?
CREATE TABLE table_74139 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real )
SELECT "Record" FROM table_74139 WHERE "Score" = '1-3'
How many ages have Maureen Connolly Brinker as the player?
CREATE TABLE table_197638_7 ( age VARCHAR, player VARCHAR )
SELECT COUNT(age) FROM table_197638_7 WHERE player = "Maureen Connolly Brinker"
Name the most ceiling temperature for intermediate
CREATE TABLE table_1239 ( "Maximum Ceiling Temperature" text, "Temperature Rating" text, "Temperature Classification" text, "Color Code (with Fusible Link)" text, "Glass Bulb Color" text )
SELECT "Maximum Ceiling Temperature" FROM table_1239 WHERE "Temperature Classification" = 'Intermediate'
What is the type if the organization name is Gamma RHO Lambda 1?
CREATE TABLE table_27646 ( "Letters" text, "Organization" text, "Nickname" text, "Founding Date" text, "Founding University" text, "Type" text )
SELECT "Type" FROM table_27646 WHERE "Organization" = 'Gamma Rho Lambda 1'
treated hypertension ( systolic blood pressure >= 110 mmhg systolic and <= 170 mmhg
CREATE TABLE table_train_109 ( "id" int, "serum_potassium" float, "systolic_blood_pressure_sbp" int, "body_mass_index_bmi" float, "hypertension" bool, "NOUSE" float )
SELECT * FROM table_train_109 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp >= 110 AND systolic_blood_pressure_sbp <= 170)
What was the number of athletes in the host city of Nice?
CREATE TABLE table_73991 ( "Edition" text, "Year" real, "Host city" text, "Host country" text, "Date" text, "No. of athletes" text, "Nations" real )
SELECT "No. of athletes" FROM table_73991 WHERE "Host city" = 'Nice'
What is the highest number of interceptions?
CREATE TABLE table_22985 ( "Name" text, "Completions" real, "Attempts" real, "Completion %" text, "Yards" real, "Touchdowns" real, "Interceptions" real, "QB Rating" text )
SELECT MAX("Interceptions") FROM table_22985
How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?
CREATE TABLE table_name_13 ( wins VARCHAR, season VARCHAR, podiums VARCHAR, races VARCHAR )
SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984
Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record?
CREATE TABLE table_11465 ( "Team" text, "Chassis" text, "Engine" text, "Tyre" text, "Drivers" text, "Races" text )
SELECT "Drivers" FROM table_11465 WHERE "Engine" = 'mercedes ic 108e' AND "Races" = '8-10'
In what year was the feature at a 33.3S latitude named?
CREATE TABLE table_16799784_8 ( year_named INTEGER, latitude VARCHAR )
SELECT MAX(year_named) FROM table_16799784_8 WHERE latitude = "33.3S"
Which romaji title, has Japanese title of 3?
CREATE TABLE table_name_94 ( romaji_title VARCHAR, japanese_title VARCHAR )
SELECT romaji_title FROM table_name_94 WHERE japanese_title = "菊次郎とさき 3"
What is the first election year listed?
CREATE TABLE table_1341472_20 ( first_elected INTEGER )
SELECT MIN(first_elected) FROM table_1341472_20
What was Staten Island when Brooklyn was 940?
CREATE TABLE table_1108394_6 ( staten_island VARCHAR, brooklyn VARCHAR )
SELECT staten_island FROM table_1108394_6 WHERE brooklyn = "940"
What is the car number driven by Darren Manning?
CREATE TABLE table_21436 ( "Fin. Pos" real, "Car No." real, "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Laps Led" real, "Points" text )
SELECT "Car No." FROM table_21436 WHERE "Driver" = 'Darren Manning'
Which player has an A-League of 150 (4)?
CREATE TABLE table_name_1 ( name VARCHAR, a_league VARCHAR )
SELECT name FROM table_name_1 WHERE a_league = "150 (4)"
What is the original air date of # 6?
CREATE TABLE table_29634 ( "#" real, "Title" text, "Directed by" text, "Written by" text, "Viewers" real, "Original airdate" text, "Prod. code" real )
SELECT "Original airdate" FROM table_29634 WHERE "#" = '6'
Which school is in the hometown of Aledo, Texas?
CREATE TABLE table_17080 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT "School" FROM table_17080 WHERE "Hometown" = 'Aledo, Texas'
What is the birth date for Mervyn Dillon?
CREATE TABLE table_name_11 ( date_of_birth VARCHAR, player VARCHAR )
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon"
On what Date was the Home Team Score 9.13 (67)?
CREATE TABLE table_58204 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_58204 WHERE "Home team score" = '9.13 (67)'
Which Team has a round 1 CONMEBOL 1995?
CREATE TABLE table_38607 ( "Team" text, "Recopa 1995" text, "Supercopa 1995" text, "CONMEBOL 1995" text, "Copa Libertadores 1996" text )
SELECT "Team" FROM table_38607 WHERE "CONMEBOL 1995" = 'round 1'
Who took test #4?
CREATE TABLE table_10749367_3 ( test_taker VARCHAR, _number VARCHAR )
SELECT test_taker FROM table_10749367_3 WHERE _number = 4
Name the 2006 when the 2010 is 27
CREATE TABLE table_15796 ( "Tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2006" FROM table_15796 WHERE "2010" = '27'
If the opponent was @ Boston Bruins, what was the Location/Attendance?
CREATE TABLE table_3782 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text )
SELECT "Location/Attendance" FROM table_3782 WHERE "Opponent" = '@ Boston Bruins'
What is Location, when Circuit is August 16?
CREATE TABLE table_name_1 ( location VARCHAR, circuit VARCHAR )
SELECT location FROM table_name_1 WHERE circuit = "august 16"
What is the 1944 result for the U.S. Championships?
CREATE TABLE table_name_52 ( tournament VARCHAR )
SELECT 1944 FROM table_name_52 WHERE tournament = "u.s. championships"
When was William Kennedy first elected?
CREATE TABLE table_3618 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
SELECT "First elected" FROM table_3618 WHERE "Incumbent" = 'William Kennedy'
Return a bar chart showing the total number of ships' nationalities, and list in desc by the total number.
CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int )
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) DESC
What is the lowest rank that spain got?
CREATE TABLE table_name_7 ( rank INTEGER, nation VARCHAR )
SELECT MIN(rank) FROM table_name_7 WHERE nation = "spain"
Give me a histogram for what are the ids and names of the architects who built at least 3 bridges ?, and I want to display by the Y in desc.
CREATE TABLE mill ( architect_id int, id int, location text, name text, type text, built_year int, notes text ) CREATE TABLE architect ( id text, name text, nationality text, gender text ) CREATE TABLE bridge ( architect_id int, id int, name text, location text, length_meters real, length_feet real )
SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id DESC
What is the total Until when the Titles was 5?
CREATE TABLE table_name_80 ( until INTEGER, titles VARCHAR )
SELECT SUM(until) FROM table_name_80 WHERE titles = "5"
What Label released on October 25, 1984, in the format of Stereo LP?
CREATE TABLE table_80337 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT "Label" FROM table_80337 WHERE "Date" = 'october 25, 1984' AND "Format" = 'stereo lp'
Show different locations and the number of performances at each location Visualize by bar chart, and sort x axis in desc order.
CREATE TABLE performance ( Performance_ID real, Date text, Host text, Location text, Attendance int ) CREATE TABLE member ( Member_ID text, Name text, Nationality text, Role text ) CREATE TABLE member_attendance ( Member_ID int, Performance_ID int, Num_of_Pieces int )
SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY Location DESC
How many events have each participants attended? Show their total number by each participant type code using a bar chart, rank in asc by the total number of count(*).
CREATE TABLE Services ( Service_ID INTEGER, Service_Type_Code CHAR(15) ) CREATE TABLE Events ( Event_ID INTEGER, Service_ID INTEGER, Event_Details VARCHAR(255) ) CREATE TABLE Participants_in_Events ( Event_ID INTEGER, Participant_ID INTEGER ) CREATE TABLE Participants ( Participant_ID INTEGER, Participant_Type_Code CHAR(15), Participant_Details VARCHAR(255) )
SELECT T1.Participant_Type_Code, SUM(COUNT(*)) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_Type_Code ORDER BY SUM(COUNT(*))
What record has a december less than 6, points less than 38, and pittsburgh penguins as the opponent?
CREATE TABLE table_5675 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT "Record" FROM table_5675 WHERE "December" < '6' AND "Points" < '38' AND "Opponent" = 'pittsburgh penguins'
Give me the comparison about School_ID over the ACC_Road , and group by attribute All_Home, and sort from low to high by the y axis.
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 ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID
What was the attendance of the game in week 6?
CREATE TABLE table_33344 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT "Attendance" FROM table_33344 WHERE "Week" = '6'
What is the highest Total for Australia?
CREATE TABLE table_name_78 ( total INTEGER, country VARCHAR )
SELECT MAX(total) FROM table_name_78 WHERE country = "australia"
What Round 32 had a # of bids smaller than 2?
CREATE TABLE table_7243 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" text, "Round of 32" text, "Sweet Sixteen" text, "Elite Eight" text, "Final Four" text, "Championship Game" text )
SELECT "Round of 32" FROM table_7243 WHERE "# of Bids" < '2'
What was the date of the game attended by 45,122?
CREATE TABLE table_name_39 ( date VARCHAR, attendance VARCHAR )
SELECT date FROM table_name_39 WHERE attendance = "45,122"
What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?
CREATE TABLE table_64198 ( "Province" text, "Inhabitants" real, "established" real, "President" text, "Party" text, "Election" real )
SELECT MIN("Election") FROM table_64198 WHERE "President" = 'leonardo marras' AND "Inhabitants" < '227,063'
Which city is listed first when Okinawa is listed as the second city?
CREATE TABLE table_16066063_1 ( city_1 VARCHAR, city_2 VARCHAR )
SELECT city_1 FROM table_16066063_1 WHERE city_2 = "Okinawa"
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
CREATE TABLE table_name_66 ( interview INTEGER, swimsuit VARCHAR, average VARCHAR )
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
What are all sail numbers for the yacht Yendys?
CREATE TABLE table_72589 ( "Position" real, "Sail number" text, "Yacht" text, "State/country" text, "Yacht type" text, "LOA (Metres)" text, "Skipper" text, "Corrected time d:hh:mm:ss" text )
SELECT "Sail number" FROM table_72589 WHERE "Yacht" = 'Yendys'
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52?
CREATE TABLE table_7483 ( "Year" real, "Events played" real, "Cuts made" real, "Wins" real, "2nds" real, "Top 10s" real, "Best finish" text, "Earnings ($)" real, "Rank" text, "Scoring average" real, "Scoring rank" text )
SELECT COUNT("Wins") FROM table_7483 WHERE "Rank" = '98' AND "Scoring average" > '73.52'
what is the italian word for the french word 'mer
CREATE TABLE table_name_37 ( italian VARCHAR, french VARCHAR )
SELECT italian FROM table_name_37 WHERE french = "mer"
what's the season with regionalliga west/s dwest being arminia bielefeld
CREATE TABLE table_959 ( "Season" text, "Regionalliga S\u00fcd" text, "Regionalliga West/S\u00fcdwest" text, "Regionalliga Nord" text, "Regionalliga Nord-Ost" text )
SELECT "Season" FROM table_959 WHERE "Regionalliga West/S\u00fcdwest" = 'Arminia Bielefeld'
At what location was the March 17 race held?
CREATE TABLE table_29285076_2 ( location VARCHAR, date VARCHAR )
SELECT location FROM table_29285076_2 WHERE date = "March 17"
Who is the winner of the prize of 200,000 as listed?
CREATE TABLE table_68433 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text )
SELECT "Winner" FROM table_68433 WHERE "Prize" = '£200,000'
What is the Company Name, when the Accreditation Level is Joyn Hot Fixes, and when the Accreditation Status is Approved (Awarded 17.05.13)?
CREATE TABLE table_name_13 ( company_name VARCHAR, accreditation_level VARCHAR, accreditation_status VARCHAR )
SELECT company_name FROM table_name_13 WHERE accreditation_level = "joyn hot fixes" AND accreditation_status = "approved (awarded 17.05.13)"
Which college has fewer than 2 rounds?
CREATE TABLE table_35540 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT "College" FROM table_35540 WHERE "Round" < '2'
Give me the comparison about All_Games_Percent over the ACC_Regular_Season , and sort in descending by the bars.
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 ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY ACC_Regular_Season DESC
What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?
CREATE TABLE table_name_99 ( race VARCHAR, tyre VARCHAR, winning_driver VARCHAR )
SELECT race FROM table_name_99 WHERE tyre = "p" AND winning_driver = "juan manuel fangio"
what is the analog type for cw on digital 26?
CREATE TABLE table_15352 ( "Media market name" text, "Callsign" text, "Analog" text, "Digital" text, "Affiliation" text )
SELECT "Analog" FROM table_15352 WHERE "Affiliation" = 'cw' AND "Digital" = '26'
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name.
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.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
What capital's county had a population of 730129 as of 2009?
CREATE TABLE table_20668 ( "Code" real, "County" text, "Former Province" text, "Area (km 2 )" text, "Population Census 2009" real, "Capital" text )
SELECT "Capital" FROM table_20668 WHERE "Population Census 2009" = '730129'
what are the total number of tornado events that occurred in 1960 in the u.s. ?
CREATE TABLE table_204_899 ( id number, "event" text, "date" text, "area" text, "tornadoes" number, "casualties" text, "notes" text )
SELECT SUM("tornadoes") FROM table_204_899 WHERE "date" = 1960
What is the venue when the year is after 2001 for the summer olympics?
CREATE TABLE table_71336 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text )
SELECT "Venue" FROM table_71336 WHERE "Year" > '2001' AND "Competition" = 'summer olympics'
what countries have the same amount of bronze medals as germany ?
CREATE TABLE table_203_653 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT COUNT("nation") FROM table_203_653 WHERE "nation" <> 'germany' AND "bronze" = (SELECT "bronze" FROM table_203_653 WHERE "nation" = 'germany')
who received more votes , duncan hunter or alan keyes ?
CREATE TABLE table_204_951 ( id number, "candidate" text, "votes" number, "percentage" text, "counties" number, "delegates" number )
SELECT "candidate" FROM table_204_951 WHERE "candidate" IN ('duncan hunter', 'alan keyes') ORDER BY "votes" DESC LIMIT 1
Which cornerback has the highest round?
CREATE TABLE table_34465 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT MAX("Round") FROM table_34465 WHERE "Position" = 'cornerback'
How many productions are shown for rd 2?
CREATE TABLE table_26686908_2 ( production VARCHAR, rd VARCHAR )
SELECT COUNT(production) FROM table_26686908_2 WHERE rd = "Rd 2"
What is the Location of the Bridge Built in 1869?
CREATE TABLE table_name_58 ( location VARCHAR, built VARCHAR )
SELECT location FROM table_name_58 WHERE built = "1869"
What was the attendance for the game on August 16?
CREATE TABLE table_name_74 ( attendance INTEGER, date VARCHAR )
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16"
What is the sum of top-10s for events with more than 0 wins?
CREATE TABLE table_79696 ( "Tournament" text, "Wins" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT SUM("Top-10") FROM table_79696 WHERE "Wins" > '0'
How many years were g Tyres and Minardi m187 used?
CREATE TABLE table_name_82 ( year INTEGER, tyres VARCHAR, chassis VARCHAR )
SELECT AVG(year) FROM table_name_82 WHERE tyres = "g" AND chassis = "minardi m187"
Which Team Win is from sweden and has a Individual win smaller than 1
CREATE TABLE table_name_48 ( team_wins INTEGER, nation VARCHAR, individual_wins VARCHAR )
SELECT MAX(team_wins) FROM table_name_48 WHERE nation = "sweden" AND individual_wins < 1
name the species that has the longest years since divergence from human .
CREATE TABLE table_204_358 ( id number, "species" text, "common name" text, "ncbi accession #" text, "ncbi name" text, "length" text, "sequence identity" text, "sequence similarity" text, "years since divergence from human (mya)" number )
SELECT "species" FROM table_204_358 ORDER BY "years since divergence from human (mya)" DESC LIMIT 1
With a gain of 1,380, what is the highest Avg/G?
CREATE TABLE table_name_35 ( avg_g INTEGER, gain VARCHAR )
SELECT MAX(avg_g) FROM table_name_35 WHERE gain = 1 OFFSET 380
When did the ship that was commissioned July 1948 with a bow number of ps-31 launch?
CREATE TABLE table_name_22 ( launched VARCHAR, commissioned VARCHAR, bow_number VARCHAR )
SELECT launched FROM table_name_22 WHERE commissioned = "july 1948" AND bow_number = "ps-31"
What is the ground of the game where the home team was Adelaide?
CREATE TABLE table_name_88 ( ground VARCHAR, home_team VARCHAR )
SELECT ground FROM table_name_88 WHERE home_team = "adelaide"
What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
CREATE TABLE table_name_75 ( year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR )
SELECT SUM(year) FROM table_name_75 WHERE entrant = "elf team tyrrell" AND points = "39" AND chassis = "tyrrell 007"
What are the memories and carriers of phones Show bar chart, and show by the mean memory in g in descending.
CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) 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 )
SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G) DESC
what is the sum of totaltk when yards is less than 0?
CREATE TABLE table_name_9 ( totaltk INTEGER, yards INTEGER )
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
CREATE TABLE table_30962 ( "Episode" text, "First broadcast" text, "Andrew and Georgies guest Lee Mack replaced Andrew Flintoff as team captain for one week in series 4, episode 2." text, "Jamie and Johns guest" text, "Scores" text )
SELECT "First broadcast" FROM table_30962 WHERE "Jamie and Johns guest" = 'Andy Murray'
How many points did the bills score when their opponent had 14
CREATE TABLE table_20494 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Bills points" real, "Opponents" real, "Bills first downs" real, "Record" text )
SELECT "Bills points" FROM table_20494 WHERE "Opponents" = '14'
Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?
CREATE TABLE table_65614 ( "Wimmera FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT MIN("Byes") FROM table_65614 WHERE "Against" > '1018' AND "Wimmera FL" = 'horsham diggers'
Name the nationality for pick of 16
CREATE TABLE table_name_12 ( nationality VARCHAR, pick VARCHAR )
SELECT nationality FROM table_name_12 WHERE pick = 16
What is the Location of the Competition with a Rank-Final of 10?
CREATE TABLE table_name_63 ( location VARCHAR, rank_final VARCHAR )
SELECT location FROM table_name_63 WHERE rank_final = "10"
who is listed as the last responsible mister -lrb- s -rrb- on this chart ?
CREATE TABLE table_204_988 ( id number, "responsible minister(s)" text, "crown entities" text, "monitoring department(s)" text, "category / type" text, "empowering legislation" text )
SELECT "responsible minister(s)" FROM table_204_988 ORDER BY id DESC LIMIT 1
Name the opponent when the result is w 16-15 and has home/away of home
CREATE TABLE table_name_37 ( opponent VARCHAR, home_away VARCHAR, result VARCHAR )
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15"
what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
CREATE TABLE table_57448 ( "Name" text, "Bodyweight" real, "Snatch" real, "Clean & jerk" real, "Total (kg)" text )
SELECT MAX("Clean & jerk") FROM table_57448 WHERE "Total (kg)" = '200.0' AND "Snatch" > '87.5'
Draw a bar chart for what are the different ship flags, and how many ships have each?, show names in ascending order please.
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 Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag
What is the date when the city is San Antonio, Texas?
CREATE TABLE table_20996923_20 ( date VARCHAR, city VARCHAR )
SELECT date FROM table_20996923_20 WHERE city = "San Antonio, Texas"
unable to swallow uncrushed oral medication in capsule form
CREATE TABLE table_train_78 ( "id" int, "mini_mental_state_examination_mmse" int, "consent" bool, "swallow_oral_medication" bool, "rosen_modified_hachinski_ischemic_score" int, "NOUSE" float )
SELECT * FROM table_train_78 WHERE swallow_oral_medication = 0
What Venue is in Colorado?
CREATE TABLE table_33011 ( "Region" text, "Host" text, "Venue" text, "City" text, "State" text )
SELECT "Venue" FROM table_33011 WHERE "State" = 'colorado'
Who was the husband date that was married in 1858?
CREATE TABLE table_name_54 ( husband_dates VARCHAR, date_married VARCHAR )
SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"
Which opponent has a Season of 2010/11?
CREATE TABLE table_name_7 ( opponent VARCHAR, season VARCHAR )
SELECT opponent FROM table_name_7 WHERE season = "2010/11"
Which class's call sign is wokg?
CREATE TABLE table_69481 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text )
SELECT "Class" FROM table_69481 WHERE "Call sign" = 'wokg'
What's the draw that's played less than 36 and has 42 points?
CREATE TABLE table_63419 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real )
SELECT AVG("Draw") FROM table_63419 WHERE "Points" = '42' AND "Played" < '36'
Create a bar chart showing all_games_percent across all neutral, sort by the y axis from high to low.
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_Neutral, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC
What place is David Graham in?
CREATE TABLE table_name_47 ( place VARCHAR, player VARCHAR )
SELECT place FROM table_name_47 WHERE player = "david graham"
What was the attendence of the game on 26 April 1948 and an away team of Hawthorn?
CREATE TABLE table_name_12 ( crowd VARCHAR, date VARCHAR, away_team VARCHAR )
SELECT crowd FROM table_name_12 WHERE date = "26 april 1948" AND away_team = "hawthorn"
Show the average age for all female students and group them by first name in a bar chart, and display x axis in desc order please.
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 Fname, AVG(Age) FROM Student WHERE Sex = 'F' GROUP BY Fname ORDER BY Fname DESC
Name the away captain with result of wi by 9 wkts
CREATE TABLE table_name_69 ( away_captain VARCHAR, result VARCHAR )
SELECT away_captain FROM table_name_69 WHERE result = "wi by 9 wkts"