instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What is the score for Collingwood as the home team?
|
CREATE TABLE table_53391 (
"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_53391 WHERE "Home team" = 'collingwood'
|
What is the number of laps for Grid 14?
|
CREATE TABLE table_51665 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT COUNT("Laps") FROM table_51665 WHERE "Grid" = '14'
|
severe kidney disease ( renal creatinine clearance < 30 ml / min )
|
CREATE TABLE table_test_12 (
"id" int,
"serum_potassium" float,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"haemoglobin" float,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"anaemia" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"symptomatic_hypotension" bool,
"kidney_disease" bool,
"NOUSE" float
)
|
SELECT * FROM table_test_12 WHERE kidney_disease = 1 OR creatinine_clearance_cl < 30
|
Which rider was on the 600cc Yamaha team?
|
CREATE TABLE table_name_44 (
rider VARCHAR,
team VARCHAR
)
|
SELECT rider FROM table_name_44 WHERE team = "600cc yamaha"
|
What is the smallest figure in 1960 when 1940 is 1,115 and 1990 is less than 928?
|
CREATE TABLE table_10998 (
"1910" real,
"1920" real,
"1930" real,
"1940" real,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
)
|
SELECT MIN("1960") FROM table_10998 WHERE "1940" = '1,115' AND "1990" < '928'
|
Who was the opponent on September 26, 2009?
|
CREATE TABLE table_43699 (
"Rank" real,
"Date" text,
"Attendance" real,
"Opponent" text,
"Texas Result" text
)
|
SELECT "Opponent" FROM table_43699 WHERE "Date" = 'september 26, 2009'
|
what was the venue on 7 october 2011?
|
CREATE TABLE table_name_11 (
venue VARCHAR,
date VARCHAR
)
|
SELECT venue FROM table_name_11 WHERE date = "7 october 2011"
|
How many dates do the dolphins have 6 points?
|
CREATE TABLE table_22648 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins points" real,
"Opponents" real,
"Record" text,
"Attendance" real
)
|
SELECT "Date" FROM table_22648 WHERE "Dolphins points" = '6'
|
how many films has neha sharma been in ?
|
CREATE TABLE table_203_157 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
)
|
SELECT COUNT("film") FROM table_203_157
|
When 8 is the public what are the results?
|
CREATE TABLE table_23249 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
|
SELECT "Result" FROM table_23249 WHERE "Public" = '8'
|
Frequency MHz smaller than 95.3, and a Call sign of k234ag is what class?
|
CREATE TABLE table_75602 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
|
SELECT "Class" FROM table_75602 WHERE "Frequency MHz" < '95.3' AND "Call sign" = 'k234ag'
|
Name the county for mccain being 38.78%
|
CREATE TABLE table_23739 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Others%" text,
"Others#" real,
"Total" real
)
|
SELECT "County" FROM table_23739 WHERE "McCain%" = '38.78%'
|
What Leading scorer had a Score of 80 112?
|
CREATE TABLE table_name_98 (
leading_scorer VARCHAR,
score VARCHAR
)
|
SELECT leading_scorer FROM table_name_98 WHERE score = "80β112"
|
What are the names of storms that did not affect two or more regions?
|
CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
)
|
SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2
|
What is the average year of the games with the date December 26?
|
CREATE TABLE table_name_84 (
year INTEGER,
date VARCHAR
)
|
SELECT AVG(year) FROM table_name_84 WHERE date = "december 26"
|
What was the rating of the season that had 18.17 million household viewers?
|
CREATE TABLE table_name_23 (
rating VARCHAR,
viewers__households_in_millions_ VARCHAR
)
|
SELECT rating FROM table_name_23 WHERE viewers__households_in_millions_ = "18.17"
|
what is the bristol & n. som where the somerset is ashcott and shapwick?
|
CREATE TABLE table_72258 (
"Year" real,
"Premier One" text,
"Premier Two" text,
"Bristol & Somerset" text,
"Glos & Wilts" text,
"Bristol & N. Som" text,
"Somerset" text,
"Gloucestershire" text,
"Wiltshire" text
)
|
SELECT "Bristol & N. Som" FROM table_72258 WHERE "Somerset" = 'Ashcott and Shapwick'
|
What is the maximum average associated with a total of 221902?
|
CREATE TABLE table_2472711_32 (
average INTEGER,
total VARCHAR
)
|
SELECT MAX(average) FROM table_2472711_32 WHERE total = 221902
|
Find the numbers of different majors and cities.
|
CREATE TABLE student (
major VARCHAR,
city_code VARCHAR
)
|
SELECT COUNT(DISTINCT major), COUNT(DISTINCT city_code) FROM student
|
Name the speed for andy reynolds
|
CREATE TABLE table_57294 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
|
SELECT "Speed" FROM table_57294 WHERE "Rider" = 'andy reynolds'
|
What was the aggregate score for Montauban?
|
CREATE TABLE table_27986200_3 (
aggregate_score VARCHAR,
proceed_to_quarter_final VARCHAR
)
|
SELECT aggregate_score FROM table_27986200_3 WHERE proceed_to_quarter_final = "Montauban"
|
what's incumbent with district being tennessee 5
|
CREATE TABLE table_1341865_44 (
incumbent VARCHAR,
district VARCHAR
)
|
SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 5"
|
What is the number of sequences for the name Alifoldz?
|
CREATE TABLE table_34124 (
"Name" text,
"Number of sequences Number of sequences: ." text,
"Alignment Alignment: predicts an alignment , ." text,
"Structure Structure: predicts structure , ." text,
"Link" text
)
|
SELECT "Number of sequences Number of sequences: ." FROM table_34124 WHERE "Name" = 'alifoldz'
|
What is the location of the game with a 6-11-8 record?
|
CREATE TABLE table_name_71 (
location VARCHAR,
record VARCHAR
)
|
SELECT location FROM table_name_71 WHERE record = "6-11-8"
|
How many times have Central Crossing won the OCC Championship?
|
CREATE TABLE table_name_96 (
occ_championships INTEGER,
school VARCHAR
)
|
SELECT SUM(occ_championships) FROM table_name_96 WHERE school = "central crossing"
|
What was the class position of the team that was in the 4th position?
|
CREATE TABLE table_77295 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
|
SELECT "Class Pos." FROM table_77295 WHERE "Pos." = '4th'
|
immunosuppression, systemic steroid therapy ( > 10 mg prednisolon / day )
|
CREATE TABLE table_train_53 (
"id" int,
"immune_suppression" bool,
"need_hemodialysis" bool,
"steroid_therapy" bool,
"cardiogenic_shock" bool,
"hematologic_disease" bool,
"coronary_syndrome" bool,
"NOUSE" float
)
|
SELECT * FROM table_train_53 WHERE immune_suppression = 1 OR steroid_therapy = 1
|
Which NBA Draft had Labradford Smith?
|
CREATE TABLE table_name_61 (
nba_draft VARCHAR,
player VARCHAR
)
|
SELECT nba_draft FROM table_name_61 WHERE player = "labradford smith"
|
What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?
|
CREATE TABLE table_name_74 (
connection_with_australia VARCHAR,
connection_with_america VARCHAR
)
|
SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen"
|
Name the score for opponents of nathan healey igor kunitsyn
|
CREATE TABLE table_38244 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
)
|
SELECT "Score" FROM table_38244 WHERE "Opponents in the final" = 'nathan healey igor kunitsyn'
|
What is the total number of bronze when the total is less than 1?
|
CREATE TABLE table_77962 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT SUM("Bronze") FROM table_77962 WHERE "Total" < '1'
|
Tell me the 1st leg for antwerp bc
|
CREATE TABLE table_name_10 (
team__number2 VARCHAR
)
|
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc"
|
WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?
|
CREATE TABLE table_name_19 (
snatch INTEGER,
total__kg_ VARCHAR,
bodyweight VARCHAR
)
|
SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15
|
How many first tournaments are associated with bowling?
|
CREATE TABLE table_2849652_2 (
sport VARCHAR
)
|
SELECT COUNT(1 AS st_tournament) FROM table_2849652_2 WHERE sport = "Bowling"
|
What is the smallest amount of points had a lost number of 2 when the position was less than 1?
|
CREATE TABLE table_42833 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
|
SELECT MIN("Points") FROM table_42833 WHERE "Lost" = '2' AND "Position" < '1'
|
What is the highest number listed?
|
CREATE TABLE table_17426 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
)
|
SELECT MAX("Number") FROM table_17426
|
What School did Terrence Jones play for?
|
CREATE TABLE table_name_40 (
school VARCHAR,
player VARCHAR
)
|
SELECT school FROM table_name_40 WHERE player = "terrence jones"
|
What is the name of the Guest Host for Episode Number of 5?
|
CREATE TABLE table_name_73 (
guest_host VARCHAR,
episode_number VARCHAR
)
|
SELECT guest_host FROM table_name_73 WHERE episode_number = 5
|
How many floors did the tallest building in Aston have?
|
CREATE TABLE table_name_43 (
floors VARCHAR,
location VARCHAR
)
|
SELECT floors FROM table_name_43 WHERE location = "aston"
|
which sensor has the largest area ?
|
CREATE TABLE table_203_356 (
id number,
"type" text,
"diagonal (mm)" text,
"width (mm)" text,
"height (mm)" text,
"area (mm2)" text,
"stops (area)" number,
"crop factor" text
)
|
SELECT "type" FROM table_203_356 ORDER BY "area (mm2)" DESC LIMIT 1
|
Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?
|
CREATE TABLE table_name_89 (
csa_5_20_09 VARCHAR,
ifop__la_croix_5_15_09 VARCHAR
)
|
SELECT csa_5_20_09 FROM table_name_89 WHERE ifop__la_croix_5_15_09 = "26%"
|
What year was Skyline High School founded?
|
CREATE TABLE table_18971 (
"High School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text,
"Division" text
)
|
SELECT COUNT("Founded") FROM table_18971 WHERE "High School" = 'Skyline'
|
How many king beds are there?
|
CREATE TABLE Rooms (
beds INTEGER,
bedtype VARCHAR
)
|
SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'
|
what is the name of the first race in the year ?
|
CREATE TABLE table_204_48 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" text,
"winner" text,
"team" text
)
|
SELECT "race name" FROM table_204_48 ORDER BY "date" LIMIT 1
|
What is the total subframe count with Bits of 18 22?
|
CREATE TABLE table_name_48 (
subframe__number INTEGER,
bits VARCHAR
)
|
SELECT SUM(subframe__number) FROM table_name_48 WHERE bits = "18β22"
|
Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.
|
CREATE TABLE Movie (
mID VARCHAR,
year VARCHAR
)
CREATE TABLE Rating (
mID VARCHAR,
stars VARCHAR
)
|
SELECT DISTINCT year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year
|
What is the protein name when the e-value is 2.50e-41?
|
CREATE TABLE table_28970 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
)
|
SELECT "Protein Name" FROM table_28970 WHERE "E-Value" = '2.50E-41'
|
What year did Culver leave?
|
CREATE TABLE table_name_71 (
year_left INTEGER,
location VARCHAR
)
|
SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver"
|
Return a bar chart on what are the names and average prices of products for manufacturers whose products cost on average 150 or more?, display in descending by the 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, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
|
What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?
|
CREATE TABLE table_name_83 (
Id VARCHAR
)
|
SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181
|
what's the builder where withdrawn is 1954 1958
|
CREATE TABLE table_1181375_1 (
builder VARCHAR,
withdrawn VARCHAR
)
|
SELECT builder FROM table_1181375_1 WHERE withdrawn = "1954β1958"
|
How many points did Newport RFC get?
|
CREATE TABLE table_8595 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
|
SELECT "Points" FROM table_8595 WHERE "Club" = 'newport rfc'
|
What is Record, when Game is greater than 55, and when Date is 'March 25'?
|
CREATE TABLE table_8366 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
|
SELECT "Record" FROM table_8366 WHERE "Game" > '55' AND "Date" = 'march 25'
|
When athletics has a total more than 2 and 0 gold, what is the total number of bronze?
|
CREATE TABLE table_name_2 (
bronze VARCHAR,
sport VARCHAR,
total VARCHAR,
gold VARCHAR
)
|
SELECT COUNT(bronze) FROM table_name_2 WHERE total > 2 AND gold = 0 AND sport = "athletics"
|
Which is the acquisition via that has a school or club team of state?
|
CREATE TABLE table_name_82 (
acquisition_via VARCHAR,
school_club_team VARCHAR
)
|
SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "state"
|
The country of Laos is in what region?
|
CREATE TABLE table_60090 (
"Country" text,
"Region" text,
"FHFreepressreport" text,
"RWB Pressfreedomindex" text,
"Internetlists" text,
"ONIpoliticalfiltering" text,
"ONIsocialfiltering" text,
"ONIsecurityfiltering" text,
"ONItoolsfiltering" text
)
|
SELECT "Region" FROM table_60090 WHERE "Country" = 'laos'
|
what was the top position in which he finished ?
|
CREATE TABLE table_204_445 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
|
SELECT MIN("position") FROM table_204_445
|
What were the starts when the points dropped 18?
|
CREATE TABLE table_73703 (
"Name" text,
"Nation" text,
"Seasons" text,
"Championship titles" text,
"Races (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points (Dropped points)" text
)
|
SELECT "Races (Starts)" FROM table_73703 WHERE "Points (Dropped points)" = '18'
|
What is the average round of the match in the Hero's 9 event with a time of 5:00?
|
CREATE TABLE table_15518 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT AVG("Round") FROM table_15518 WHERE "Time" = '5:00' AND "Event" = 'hero''s 9'
|
Show the name of the product that is cheapest in each product category with their minimum price with a bar graph, and sort by the y-axis in asc.
|
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 Name, MIN(Price) FROM Products GROUP BY Name ORDER BY MIN(Price)
|
Which runner-up placed in a year prior to 2006 and whose Champion was Elon?
|
CREATE TABLE table_name_66 (
runner_up VARCHAR,
year VARCHAR,
champion VARCHAR
)
|
SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon"
|
At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?
|
CREATE TABLE table_74492 (
"Year" text,
"Competition" text,
"Opponent" text,
"Score" text,
"Venue" text
)
|
SELECT "Venue" FROM table_74492 WHERE "Score" = '7.14 (56) - 4.5 (29)'
|
What is in the ninth position where the tenth position is rabat ajax?
|
CREATE TABLE table_33623 (
"Year" text,
"1st Position" text,
"2nd Position" text,
"9th Position" text,
"10th Position" text
)
|
SELECT "9th Position" FROM table_33623 WHERE "10th Position" = 'rabat ajax'
|
What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?
|
CREATE TABLE table_name_51 (
gdp_2012_millions_of_euro VARCHAR,
population_in_millions VARCHAR,
gdp__nominal__per_capita_2012_euro VARCHAR
)
|
SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = "20,700(p)"
|
What is the pick # when the new jersey devils is the nhl team?
|
CREATE TABLE table_30854 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
|
SELECT "Pick #" FROM table_30854 WHERE "NHL team" = 'New Jersey Devils'
|
Where is Bloomington High School North?
|
CREATE TABLE table_73158 (
"School" text,
"City / Town" text,
"Website" text,
"Size" real,
"Principal" text,
"Grades" text,
"IDOE Profile" text
)
|
SELECT "City / Town" FROM table_73158 WHERE "School" = 'Bloomington High School North'
|
where is the best restaurant in bay area for american food ?
|
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
|
SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'bay area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'american' AND restaurant.id = location.restaurant_id AND restaurant.rating = (SELECT MAX(RESTAURANTalias1.rating) FROM geographic AS GEOGRAPHICalias1, restaurant AS RESTAURANTalias1 WHERE GEOGRAPHICalias1.region = 'bay area' AND RESTAURANTalias1.city_name = GEOGRAPHICalias1.city_name AND RESTAURANTalias1.food_type = 'american')
|
Name the literature for pradit prasarttong
|
CREATE TABLE table_67645 (
"Year" real,
"Literature" text,
"Music" text,
"Film" text,
"Performing arts" text
)
|
SELECT "Literature" FROM table_67645 WHERE "Performing arts" = 'pradit prasarttong'
|
what's the province where member is dingley brittin category:articles with hcards
|
CREATE TABLE table_380 (
"Member" text,
"Electorate" text,
"Province" text,
"MPs term" text,
"Election date" text
)
|
SELECT "Province" FROM table_380 WHERE "Member" = 'Dingley Brittin Category:Articles with hCards'
|
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
|
CREATE TABLE table_23747 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Total" real
)
|
SELECT "Obama%" FROM table_23747 WHERE "McCain#" = '3648'
|
Who had the highest rebounds on December 30?
|
CREATE TABLE table_9284 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "High rebounds" FROM table_9284 WHERE "Date" = 'december 30'
|
What was the attendance when the score was 88-98?
|
CREATE TABLE table_name_20 (
attendance VARCHAR,
score VARCHAR
)
|
SELECT attendance FROM table_name_20 WHERE score = "88-98"
|
Show weight from each date of birth, and display in descending by the total number.
|
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
|
SELECT Date_of_Birth, Weight FROM people ORDER BY Weight DESC
|
What is the number of contestants who are 5'7' and exactly 26 years of age?
|
CREATE TABLE table_27692 (
"Country" text,
"Contestant" text,
"Age" real,
"Height (cm)" real,
"Height (ft)" text,
"Hometown" text
)
|
SELECT COUNT("Contestant") FROM table_27692 WHERE "Height (ft)" = '5''7' AND "Age" = '26'
|
What is the name of the coaster that opened in 2011 and is a euro-fighter model?
|
CREATE TABLE table_55049 (
"Name" text,
"Model" text,
"Park" text,
"Opened" text,
"Status" text
)
|
SELECT "Name" FROM table_55049 WHERE "Model" = 'euro-fighter' AND "Opened" = '2011'
|
who is the last player on the list to not attempt a 3 point shot ?
|
CREATE TABLE table_204_292 (
id number,
"no." number,
"name" text,
"class" number,
"games" number,
"minutes" number,
"points" number,
"2 points\n(made/attempts)" text,
"2 points\n(%)" number,
"3 points\n(made/attempts)" text,
"3 points\n(%)" number,
"free throws\n(made/attempts)" text,
"free throws\n(%)" number,
"rebounds offensive" number,
"rebounds defensive" number,
"rebounds total" number,
"assists" number,
"turnovers" number,
"steals" number,
"blocked shots" number,
"personal fouls" number,
"fouls drawn" number
)
|
SELECT "name" FROM table_204_292 WHERE "3 points\n(made/attempts)" IS NULL ORDER BY id DESC LIMIT 1
|
Who is the mixed doubled on the tour korea super series?
|
CREATE TABLE table_27753492_2 (
mixed_doubles VARCHAR,
tour VARCHAR
)
|
SELECT mixed_doubles FROM table_27753492_2 WHERE tour = "Korea Super Series"
|
When was the sargent bridge built?
|
CREATE TABLE table_name_61 (
built VARCHAR,
name VARCHAR
)
|
SELECT built FROM table_name_61 WHERE name = "sargent bridge"
|
What is the average rating of songs for each language?
|
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
|
SELECT AVG(rating), languages FROM song GROUP BY languages
|
What is the Hangul of the Province with a Kana of ?
|
CREATE TABLE table_name_48 (
hangul VARCHAR,
kana VARCHAR
)
|
SELECT hangul FROM table_name_48 WHERE kana = "γΈγγγγͺγγ©γ"
|
Which opponent had an attendance of 40,070?
|
CREATE TABLE table_32706 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
|
SELECT "Opponent" FROM table_32706 WHERE "Attendance" = '40,070'
|
What was the kickoff time for week 11's game?
|
CREATE TABLE table_41391 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff Time" text,
"Attendance" text
)
|
SELECT "Kickoff Time" FROM table_41391 WHERE "Week" = '11'
|
Who is the auther when the english name was histories and eulogies of the sovereigns?
|
CREATE TABLE table_25014 (
"English name" text,
"Georgian name" text,
"Transliteration" text,
"Date" text,
"Author" text,
"Period covered" text
)
|
SELECT "Author" FROM table_25014 WHERE "English name" = 'Histories and Eulogies of the Sovereigns'
|
Show the account id and the number of transactions for each account
|
CREATE TABLE Financial_transactions (
account_id VARCHAR
)
|
SELECT account_id, COUNT(*) FROM Financial_transactions GROUP BY account_id
|
On what date did Contac 12 Hours of Sebring take place?
|
CREATE TABLE table_name_21 (
date VARCHAR,
race VARCHAR
)
|
SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring"
|
When did Deng Xuan first win Women's singles?
|
CREATE TABLE table_71765 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
|
SELECT MIN("Year") FROM table_71765 WHERE "Women's singles" = 'deng xuan'
|
What is the Rank that has a Venue of bellerive oval , hobart, and a Margin of 115 runs?
|
CREATE TABLE table_8061 (
"Rank" text,
"Margin" text,
"Opponent" text,
"Venue" text,
"Season" text
)
|
SELECT "Rank" FROM table_8061 WHERE "Venue" = 'bellerive oval , hobart' AND "Margin" = '115 runs'
|
what is the regional county municipality when the type is m and the code is less than 91015?
|
CREATE TABLE table_11047 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
)
|
SELECT "Regional County Municipality" FROM table_11047 WHERE "Type" = 'm' AND "Code" < '91015'
|
What was the score for the game on June 30?
|
CREATE TABLE table_name_65 (
score VARCHAR,
date VARCHAR
)
|
SELECT score FROM table_name_65 WHERE date = "june 30"
|
Bar chart x axis location y axis the average of number of platforms
|
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
|
SELECT Location, AVG(Number_of_Platforms) FROM station GROUP BY Location
|
Find the title and star rating of the movie that got the least rating star for each reviewer.
|
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
|
SELECT T2.title, T1.rid, T1.stars, MIN(T1.stars) FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.rid
|
What is the name of the building housing more than 101 floors, that was built after 2006?
|
CREATE TABLE table_54822 (
"Rank" text,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real
)
|
SELECT "Name" FROM table_54822 WHERE "Year" > '2006' AND "Floors" > '101'
|
What's the 123kg of the Total world record?
|
CREATE TABLE table_name_41 (
world_record VARCHAR
)
|
SELECT 123 AS kg FROM table_name_41 WHERE world_record = "total"
|
What college did the defensive back attend?
|
CREATE TABLE table_14650162_1 (
college VARCHAR,
position VARCHAR
)
|
SELECT college FROM table_14650162_1 WHERE position = "Defensive Back"
|
What is the highest value for col(m) when prominence(m) is 3755?
|
CREATE TABLE table_22713 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
|
SELECT MAX("Col (m)") FROM table_22713 WHERE "Prominence (m)" = '3755'
|
For those products with a price between 60 and 120, draw a bar chart about the distribution of name and manufacturer , and I want to sort from high to low by the total number.
|
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 Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Manufacturer DESC
|
Stacked bar chart of how many away team for with each Home_team in each away team
|
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
|
SELECT Away_team, COUNT(Away_team) FROM game GROUP BY Home_team, Away_team
|
Which bodyweight has a Total (kg) of 145.0?
|
CREATE TABLE table_name_18 (
bodyweight VARCHAR,
total__kg_ VARCHAR
)
|
SELECT bodyweight FROM table_name_18 WHERE total__kg_ = "145.0"
|
when air date is october 14, 2010 what are all 18-49 (rating/share date.
|
CREATE TABLE table_29464 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" text,
"18-49 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank (#)" text
)
|
SELECT "18-49 (Rating/Share)" FROM table_29464 WHERE "Air Date" = 'October 14, 2010'
|
What was Laura Diaz's score for place t9?
|
CREATE TABLE table_name_72 (
score VARCHAR,
place VARCHAR,
player VARCHAR
)
|
SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.