instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Name the date for value 55c
|
CREATE TABLE table_2006661_1 (
date VARCHAR,
value VARCHAR
)
|
SELECT date FROM table_2006661_1 WHERE value = "55c"
|
Which venue does Mardan sponsor?
|
CREATE TABLE table_17356873_1 (
venue VARCHAR,
shirt_sponsor VARCHAR
)
|
SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan"
|
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
|
CREATE TABLE table_53653 (
"Place (Posici\u00f3n)" real,
"Team (Equipo)" text,
"Played (PJ)" real,
"Won (PG)" real,
"Draw (PE)" real,
"Lost (PP)" real,
"Goals Scored (GF)" real,
"Goals Conceded (GC)" real,
"+/- (Dif.)" real,
"Points (Pts.)" real
)
|
SELECT AVG("Goals Conceded (GC)") FROM table_53653 WHERE "Goals Scored (GF)" > '19' AND "Points (Pts.)" = '31' AND "Draw (PE)" > '7'
|
How many juries are there when the draw is 3?
|
CREATE TABLE table_30214 (
"Draw" real,
"Artist" text,
"Song (English translation)" text,
"Lyrics (l) / Music (m)" text,
"Juries" real,
"Viewers" real,
"Total" real,
"Place" real
)
|
SELECT MAX("Juries") FROM table_30214 WHERE "Draw" = '3'
|
What is the date of the Outback Steakhouse Pro-Am Tournament?
|
CREATE TABLE table_name_94 (
date VARCHAR,
tournament VARCHAR
)
|
SELECT date FROM table_name_94 WHERE tournament = "outback steakhouse pro-am"
|
What year has a original title of 'el tinte de la fama'?
|
CREATE TABLE table_60581 (
"Year (Ceremony)" text,
"Original title" text,
"Film title used in nomination" text,
"Director" text,
"Result" text
)
|
SELECT "Year (Ceremony)" FROM table_60581 WHERE "Original title" = 'el tinte de la fama'
|
What is the opponent of the veterans stadium
|
CREATE TABLE table_17879 (
"Week" real,
"Date" text,
"Kickoff ( ET )" text,
"TV" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text
)
|
SELECT "Opponent" FROM table_17879 WHERE "Game Site" = 'Veterans Stadium'
|
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is 'Flying Dutchman'?
|
CREATE TABLE table_name_80 (
olympics_so_far INTEGER,
class VARCHAR,
sailors VARCHAR,
first_og VARCHAR
)
|
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman"
|
What is smallest Khmer valued less than 90 have a kau sip ALA-LC?
|
CREATE TABLE table_name_9 (
khmer INTEGER,
ala_lc VARCHAR,
value VARCHAR
)
|
SELECT MIN(khmer) FROM table_name_9 WHERE ala_lc = "kau sip" AND value < 90
|
What is the Qual with less than 68 laps?
|
CREATE TABLE table_name_3 (
qual VARCHAR,
laps INTEGER
)
|
SELECT qual FROM table_name_3 WHERE laps < 68
|
Return a bar chart about the distribution of All_Home and the amount of All_Home , and group by attribute All_Home, I want to sort by the total number from low to high.
|
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
|
SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home)
|
Show me how many year by year in a histogram, and I want to list Y-axis in desc order.
|
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
|
SELECT Year, COUNT(Year) FROM exhibition ORDER BY COUNT(Year) DESC
|
Show the residences that have both a player of gender 'M' and a player of gender 'F'.
|
CREATE TABLE player (
Residence VARCHAR,
gender VARCHAR
)
|
SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"
|
When dis cbs release the DVD set?
|
CREATE TABLE table_name_76 (
dvd_set_release_date VARCHAR,
network VARCHAR
)
|
SELECT dvd_set_release_date FROM table_name_76 WHERE network = "cbs"
|
What was the highest round that had northwestern?
|
CREATE TABLE table_name_18 (
round INTEGER,
school VARCHAR
)
|
SELECT MAX(round) FROM table_name_18 WHERE school = "northwestern"
|
what is the average opening weekend gross between iron man 3 and the dark knight ?
|
CREATE TABLE table_203_174 (
id number,
"rank" number,
"film" text,
"year" number,
"opening weekend\n(three day)" text,
"inflation-adjusted\n(2014 usd)" text
)
|
SELECT AVG("opening weekend\n(three day)") FROM table_203_174 WHERE "film" IN ('iron man 3', 'the dark knight')
|
What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9?
|
CREATE TABLE table_75839 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT AVG("Total") FROM table_75839 WHERE "Nation" = 'ethiopia (eth)' AND "Rank" > '9'
|
What was the date of the home game for Colorado?
|
CREATE TABLE table_name_67 (
date VARCHAR,
home VARCHAR
)
|
SELECT date FROM table_name_67 WHERE home = "colorado"
|
What is the least amount of silver medals a team with less than 0 gold medals has?
|
CREATE TABLE table_54758 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT MIN("Silver") FROM table_54758 WHERE "Gold" < '0'
|
What was the pick number for the wide receiver drafted from Michigan State?
|
CREATE TABLE table_43314 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
|
SELECT "Pick #" FROM table_43314 WHERE "Position" = 'wide receiver' AND "College" = 'michigan state'
|
List the weight for 56.5 kilograms.
|
CREATE TABLE table_2581397_3 (
race VARCHAR,
weight__kg_ VARCHAR
)
|
SELECT race FROM table_2581397_3 WHERE weight__kg_ = "56.5"
|
How many forced fumbles for jim laney with under 2 solo tackles?
|
CREATE TABLE table_name_20 (
fumble_force VARCHAR,
solo VARCHAR,
player VARCHAR
)
|
SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney"
|
How many entries arr there for the top 10 for the 78th position?
|
CREATE TABLE table_1507423_5 (
top_10 VARCHAR,
position VARCHAR
)
|
SELECT COUNT(top_10) FROM table_1507423_5 WHERE position = "78th"
|
What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?
|
CREATE TABLE table_name_73 (
down__up_to_kbit_s_ INTEGER,
provider VARCHAR,
up__up_to_kbit_s_ VARCHAR
)
|
SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984
|
Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
|
CREATE TABLE table_60608 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
|
SELECT "Census Ranking" FROM table_60608 WHERE "Population" < '879' AND "Area km 2" > '537.62'
|
Name the title for 446913
|
CREATE TABLE table_2987 (
"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_2987 WHERE "Production code" = '446913'
|
Create a bar chart showing maximal revenue across 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 Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter
|
What was the margin of victory with the winning score '63-68-68-68=267'?
|
CREATE TABLE table_1602858_1 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
|
SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267
|
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
|
CREATE TABLE table_name_64 (
laps INTEGER,
constructor VARCHAR,
grid VARCHAR
)
|
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
|
Which final opponent's surface was hard (i) and participated on October 9, 2005?
|
CREATE TABLE table_name_26 (
opponent_in_the_final VARCHAR,
surface VARCHAR,
date VARCHAR
)
|
SELECT opponent_in_the_final FROM table_name_26 WHERE surface = "hard (i)" AND date = "october 9, 2005"
|
Which event had 4th place and took place in the year 2007?
|
CREATE TABLE table_name_76 (
event VARCHAR,
position VARCHAR,
year VARCHAR
)
|
SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007
|
Who was the away team that had attendance under 2614 and a home team of Victoria?
|
CREATE TABLE table_8672 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
|
SELECT "Away" FROM table_8672 WHERE "Attendance" < '2614' AND "Home" = 'victoria'
|
What is the sum of laps that has a time/retired that is +19.475?
|
CREATE TABLE table_5148 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT SUM("Laps") FROM table_5148 WHERE "Time/Retired" = '+19.475'
|
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
|
CREATE TABLE table_name_71 (
lecturers VARCHAR,
total VARCHAR,
associate_professors VARCHAR,
assistant_professors VARCHAR,
professors VARCHAR
)
|
SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81
|
What position did Rich Manning play?
|
CREATE TABLE table_44001 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
|
SELECT "Position" FROM table_44001 WHERE "Player" = 'rich manning'
|
Which County has a Mascot of pacers?
|
CREATE TABLE table_66299 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"County" text
)
|
SELECT "County" FROM table_66299 WHERE "Mascot" = 'pacers'
|
What is the sum for the week with the date october 30, 1994?
|
CREATE TABLE table_45257 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
|
SELECT SUM("Week") FROM table_45257 WHERE "Date" = 'october 30, 1994'
|
What's the Significant of a value 1.0?
|
CREATE TABLE table_38688 (
"Type" text,
"Actual Exponent" text,
"Exp (biased)" text,
"Exponent field" text,
"Significand (fraction field)" text,
"Value" text
)
|
SELECT "Significand (fraction field)" FROM table_38688 WHERE "Value" = '1.0'
|
Which 2nd (m) has a 1st (m) of 120.5 and Points smaller than 249.9?
|
CREATE TABLE table_34894 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
)
|
SELECT AVG("2nd (m)") FROM table_34894 WHERE "1st (m)" = '120.5' AND "Points" < '249.9'
|
What is the largest attendance at Memorial Stadium on December 12, 1965?
|
CREATE TABLE table_name_51 (
attendance INTEGER,
game_site VARCHAR,
date VARCHAR
)
|
SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 1965"
|
Name the club for when tries for is 32
|
CREATE TABLE table_17625749_1 (
club VARCHAR,
tries_for VARCHAR
)
|
SELECT club FROM table_17625749_1 WHERE tries_for = "32"
|
On what date did the away team Fremantle play?
|
CREATE TABLE table_16388478_3 (
date VARCHAR,
away_team VARCHAR
)
|
SELECT date FROM table_16388478_3 WHERE away_team = "Fremantle"
|
How much has dave stockton earned?
|
CREATE TABLE table_11861 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
|
SELECT MAX("Earnings( $ )") FROM table_11861 WHERE "Player" = 'dave stockton'
|
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R?
|
CREATE TABLE table_67936 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
|
SELECT "2009" FROM table_67936 WHERE "2012" = '1r' AND "2007" = '2r'
|
What is the date when streak was won 8?
|
CREATE TABLE table_name_50 (
date VARCHAR,
streak VARCHAR
)
|
SELECT date FROM table_name_50 WHERE streak = "won 8"
|
What are all the AAA classes in the school years of 2004-05?
|
CREATE TABLE table_14603212_5 (
class_aAA VARCHAR,
school_year VARCHAR
)
|
SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05"
|
What year for geelong player john roberts?
|
CREATE TABLE table_name_77 (
year VARCHAR,
opponent VARCHAR,
player VARCHAR
)
|
SELECT year FROM table_name_77 WHERE opponent = "geelong" AND player = "john roberts"
|
How much Bronze has a Gold larger than 0, and a Total smaller than 1?
|
CREATE TABLE table_name_88 (
bronze VARCHAR,
gold VARCHAR,
total VARCHAR
)
|
SELECT COUNT(bronze) FROM table_name_88 WHERE gold > 0 AND total < 1
|
What are the names of all genres in alphabetical order, combined with its ratings?
|
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in 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 artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
|
SELECT g_name, rating FROM genre ORDER BY g_name
|
Who played Mixed Doubles in 1991?
|
CREATE TABLE table_27157 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
|
SELECT "Mixed doubles" FROM table_27157 WHERE "Year" = '1991'
|
Draw a bar chart of affiliation versus sum enrollment, and I want to display y axis from low to high order 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 Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation ORDER BY SUM(Enrollment)
|
What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?
|
CREATE TABLE table_30058355_7 (
fri_26_aug VARCHAR,
wed_24_aug VARCHAR
)
|
SELECT fri_26_aug FROM table_30058355_7 WHERE wed_24_aug = "23' 52.67 94.807mph"
|
What nation has a Record of 5.06m(16ft7in)?
|
CREATE TABLE table_40860 (
"Record" text,
"Athlete" text,
"Nation" text,
"Venue" text,
"Date" text
)
|
SELECT "Nation" FROM table_40860 WHERE "Record" = '5.06m(16ft7in)'
|
What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?
|
CREATE TABLE table_name_74 (
points VARCHAR,
year VARCHAR,
entrant VARCHAR,
chassis VARCHAR
)
|
SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960
|
What is the away team when the home team is Cheltenham Town?
|
CREATE TABLE table_name_5 (
away_team VARCHAR,
home_team VARCHAR
)
|
SELECT away_team FROM table_name_5 WHERE home_team = "cheltenham town"
|
What is the date of the circuit of n rburgring, which had Graham Hill as the winning driver?
|
CREATE TABLE table_77970 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
|
SELECT "Date" FROM table_77970 WHERE "Winning driver" = 'graham hill' AND "Circuit" = 'nürburgring'
|
Show name and distance for all aircrafts.
|
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE certificate (
eid number,
aid number
)
|
SELECT name, distance FROM aircraft
|
which country has the most fide rated players after germany ?
|
CREATE TABLE table_203_663 (
id number,
"country" text,
"zone" text,
"national federation" text,
"#gm" number,
"#fide" number,
"national championship" text
)
|
SELECT "country" FROM table_203_663 WHERE "country" <> 'germany' ORDER BY "#fide" DESC LIMIT 1
|
How many Indians were admitted in 2001?
|
CREATE TABLE table_21407 (
"Year" real,
"Indians admitted" real,
"Pakistanis admitted" real,
"Sri Lankans admitted" real,
"Bangladeshis admitted" real,
"Nepalis admitted" real
)
|
SELECT "Indians admitted" FROM table_21407 WHERE "Year" = '2001'
|
How many total games associated with the Pac-12 of california and 117 years?
|
CREATE TABLE table_name_84 (
total_games VARCHAR,
years VARCHAR,
pac_12 VARCHAR
)
|
SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california"
|
What Mascot has an Enrollment greater than 2,464?
|
CREATE TABLE table_name_23 (
mascot VARCHAR,
enrollment INTEGER
)
|
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464
|
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?
|
CREATE TABLE table_56231 (
"Yard Name" text,
"Location (City, State)" text,
"1st Ship Delivery Date" text,
"Ship Types Delivered" text,
"Total Number of Ways" text,
"Total Vessels Built for USMC" text
)
|
SELECT "Yard Name" FROM table_56231 WHERE "Ship Types Delivered" = 'n3 type, v4 type' AND "Total Vessels Built for USMC" = '13 ships for usmc'
|
Name the insurgents for civilians being 49
|
CREATE TABLE table_name_75 (
insurgents VARCHAR,
civilians VARCHAR
)
|
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
|
When was the ship launched when the commissioned or completed(*) is 6 june 1864?
|
CREATE TABLE table_12592074_1 (
launched VARCHAR,
commissioned_or_completed_ VARCHAR,
_ VARCHAR
)
|
SELECT launched FROM table_12592074_1 WHERE commissioned_or_completed_ * _ = "6 June 1864"
|
what was the teams final record
|
CREATE TABLE table_204_123 (
id number,
"week" number,
"date" text,
"kickoff" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"game site" text,
"attendance" number
)
|
SELECT "results\nteam record" FROM table_204_123 ORDER BY "week" DESC LIMIT 1
|
Which team was the away team when the game was at punt road oval?
|
CREATE TABLE table_74685 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Away team" FROM table_74685 WHERE "Venue" = 'punt road oval'
|
Name of David Kimball, and an Overall smaller than 229 is what highest round?
|
CREATE TABLE table_name_51 (
round INTEGER,
name VARCHAR,
overall VARCHAR
)
|
SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229
|
How many votes were cast when the notes reported lost to incumbent vic gilliam?
|
CREATE TABLE table_name_51 (
votes VARCHAR,
notes VARCHAR
)
|
SELECT votes FROM table_name_51 WHERE notes = "lost to incumbent vic gilliam"
|
What is the total number of draws for songs performed by Miranda with fewer than 48 points?
|
CREATE TABLE table_name_64 (
draw VARCHAR,
performer VARCHAR,
points VARCHAR
)
|
SELECT COUNT(draw) FROM table_name_64 WHERE performer = "miranda" AND points < 48
|
Which Loss has a Record of 30-32?
|
CREATE TABLE table_name_85 (
loss VARCHAR,
record VARCHAR
)
|
SELECT loss FROM table_name_85 WHERE record = "30-32"
|
For the game played at Windy Hill, who was the away team?
|
CREATE TABLE table_name_4 (
away_team VARCHAR,
venue VARCHAR
)
|
SELECT away_team FROM table_name_4 WHERE venue = "windy hill"
|
Which Name has a League Cup Goals of 0, and League Apps of 1?
|
CREATE TABLE table_name_75 (
name VARCHAR,
league_cup_goals VARCHAR,
league_apps VARCHAR
)
|
SELECT name FROM table_name_75 WHERE league_cup_goals = 0 AND league_apps = "1"
|
Who was born in Porsgrunn?
|
CREATE TABLE table_name_27 (
name VARCHAR,
place_of_birth VARCHAR
)
|
SELECT name FROM table_name_27 WHERE place_of_birth = "porsgrunn"
|
What is the home team score where the home team is Fremantle?
|
CREATE TABLE table_16388478_4 (
home_team VARCHAR
)
|
SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle"
|
What were the outcomes of matches with bill tilden florence ballin as opponents?
|
CREATE TABLE table_24244 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
|
SELECT "Outcome" FROM table_24244 WHERE "Opponents" = 'Bill Tilden Florence Ballin'
|
What are the ids and names of the architects who built at least 3 bridges , and rank y-axis in desc order.
|
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
)
CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
type text,
built_year int,
notes text
)
|
SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id DESC
|
Who is the opponent with a save of ||33,453||36 27?
|
CREATE TABLE table_name_39 (
opponent VARCHAR,
save VARCHAR
)
|
SELECT opponent FROM table_name_39 WHERE save = "||33,453||36–27"
|
For the game where the away team was North Melbourne, what was the venue?
|
CREATE TABLE table_33381 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Venue" FROM table_33381 WHERE "Away team" = 'north melbourne'
|
What is the sum of all total values for Switzerland?
|
CREATE TABLE table_55937 (
"Rank" real,
"Name" text,
"Nation" text,
"Placings" text,
"Total" real
)
|
SELECT SUM("Total") FROM table_55937 WHERE "Nation" = 'switzerland'
|
Name the south american rank for venezuela
|
CREATE TABLE table_2249087_1 (
south_american_rank INTEGER,
nation VARCHAR
)
|
SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = "Venezuela"
|
Who is the home side when north melbourne is the away side?
|
CREATE TABLE table_4521 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Home team" FROM table_4521 WHERE "Away team" = 'north melbourne'
|
What was the result on October 4, 1993?
|
CREATE TABLE table_39710 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
|
SELECT "Result" FROM table_39710 WHERE "Date" = 'october 4, 1993'
|
What was the game number that was played on November 15?
|
CREATE TABLE table_name_82 (
game INTEGER,
date VARCHAR
)
|
SELECT MIN(game) FROM table_name_82 WHERE date = "november 15"
|
Which game is named tsegay kebede category:articles with hcards?
|
CREATE TABLE table_name_70 (
games VARCHAR,
name VARCHAR
)
|
SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
|
what is the date of the game 23?
|
CREATE TABLE table_29736 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "Date" FROM table_29736 WHERE "Game" = '23'
|
Name the ship with hull number of aor-6
|
CREATE TABLE table_37185 (
"Ship" text,
"Hull No." text,
"Builder" text,
"Home Port" text,
"Commissioned\u2013 Decommissioned" text,
"NVR page" text
)
|
SELECT "Ship" FROM table_37185 WHERE "Hull No." = 'aor-6'
|
What two players had the highest rebounds for the October 14 game?
|
CREATE TABLE table_74185 (
"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_74185 WHERE "Date" = 'October 14'
|
Tell me the gold for netherlands
|
CREATE TABLE table_56135 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
)
|
SELECT "Gold" FROM table_56135 WHERE "Nation" = 'netherlands'
|
How many years was he car number 92?
|
CREATE TABLE table_22183 (
"Year" real,
"Car number" real,
"Start" real,
"Qual. speed" text,
"Speed rank" real,
"Finish" real,
"Laps completed" real,
"Laps led" real,
"Race status" text,
"Chassis" text
)
|
SELECT COUNT("Speed rank") FROM table_22183 WHERE "Car number" = '92'
|
What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?
|
CREATE TABLE table_42513 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT AVG("Silver") FROM table_42513 WHERE "Bronze" = '3' AND "Total" > '4'
|
Create a bar chart showing how many location across location
|
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
|
SELECT Location, COUNT(Location) FROM party GROUP BY Location
|
other than william stuart price , which other businessman was born in tulsa ?
|
CREATE TABLE table_204_68 (
id number,
"name" text,
"profession" text,
"hometown" text,
"term expires" number,
"office" text
)
|
SELECT "name" FROM table_204_68 WHERE "name" <> 'william stuart price' AND "hometown" = 'tulsa'
|
What is the average played that has a drawn greater than 1, with an against greater than 16?
|
CREATE TABLE table_name_17 (
played INTEGER,
drawn VARCHAR,
against VARCHAR
)
|
SELECT AVG(played) FROM table_name_17 WHERE drawn > 1 AND against > 16
|
how many iso/iec were published before the year 2000 ?
|
CREATE TABLE table_204_200 (
id number,
"iso/iec standard" text,
"title" text,
"status" text,
"description" text,
"wg" number
)
|
SELECT COUNT("iso/iec standard") FROM table_204_200 WHERE "status" < 2000
|
which album came after hammer and tongs for this group ?
|
CREATE TABLE table_204_928 (
id number,
"year" number,
"album" text,
"territory" text,
"label" text,
"notes" text
)
|
SELECT "album" FROM table_204_928 WHERE id = (SELECT id FROM table_204_928 WHERE "album" = 'hammer and tongs') + 1
|
what is the score at Olympia fields, illinois?
|
CREATE TABLE table_name_80 (
score VARCHAR,
location VARCHAR
)
|
SELECT score FROM table_name_80 WHERE location = "olympia fields, illinois"
|
In how many locations did Game 13 take place?
|
CREATE TABLE table_17058116_5 (
location_attendance VARCHAR,
game VARCHAR
)
|
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13
|
Who is Winning driver on 18 may?
|
CREATE TABLE table_6340 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
|
SELECT "Winning driver" FROM table_6340 WHERE "Date" = '18 may'
|
What Country is Rocco Mediate from?
|
CREATE TABLE table_46750 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
|
SELECT "Country" FROM table_46750 WHERE "Player" = 'rocco mediate'
|
Which athlete, has an 18.55 result
|
CREATE TABLE table_79341 (
"Rank" real,
"Group" text,
"Athlete" text,
"Nationality" text,
"Result" real
)
|
SELECT "Athlete" FROM table_79341 WHERE "Result" = '18.55'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.