instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What is the value in 2009 at the French Open? | CREATE TABLE table_name_86 (
tournament VARCHAR
) | SELECT 2009 FROM table_name_86 WHERE tournament = "french open" |
Which show was sent to syndication for its new/returning/same network. | CREATE TABLE table_169766_13 (
show VARCHAR,
new_returning_same_network VARCHAR
) | SELECT show FROM table_169766_13 WHERE new_returning_same_network = "Syndication" |
What is the Front Side Bus for Model Number c3 850? | CREATE TABLE table_name_54 (
front_side_bus VARCHAR,
model_number VARCHAR
) | SELECT front_side_bus FROM table_name_54 WHERE model_number = "c3 850" |
Name the surface for nathalie tauziat | CREATE TABLE table_27019 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_27019 WHERE "Partner" = 'Nathalie Tauziat' |
Tell me the year built for number built of 10 | CREATE TABLE table_31807 (
"Class" text,
"Type" text,
"No. built (Converted*)" text,
"Year built (Converted*)" text,
"No. range" text,
"Withdrawn" real
) | SELECT "Year built (Converted*)" FROM table_31807 WHERE "No. built (Converted*)" = '10' |
Which City of license has a Call sign of w220ba? | CREATE TABLE table_name_64 (
city_of_license VARCHAR,
call_sign VARCHAR
) | SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba" |
What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995? | CREATE TABLE table_64769 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT "Latitude" FROM table_64769 WHERE "Land ( sqmi )" < '34.401' AND "GEO ID" < '3807157722' AND "Longitude" = '-98.475995' |
out of all their times , which one was fastest ? | CREATE TABLE table_204_547 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" number,
"notes" text
) | SELECT "time" FROM table_204_547 ORDER BY "time" LIMIT 1 |
When has an Opponent of at Seattle mariners? | CREATE TABLE table_38927 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Date" FROM table_38927 WHERE "Opponent" = 'at seattle mariners' |
Date of sun. oct. 1 has what location? | CREATE TABLE table_name_29 (
location VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_29 WHERE date = "sun. oct. 1" |
What is every value for points if rebounds is 6 and blocks is 0? | CREATE TABLE table_27581 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | SELECT "Points" FROM table_27581 WHERE "Rebounds" = '6' AND "Blocks" = '0' |
Who was the director that had a recipient of Redbag Pictures Ltd? | CREATE TABLE table_name_54 (
director_s_ VARCHAR,
recipient VARCHAR
) | SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd" |
Which Date has a Result of 0 0? | CREATE TABLE table_name_42 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_42 WHERE result = "0–0" |
Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama? | CREATE TABLE table_66527 (
"Airing date" text,
"English title (Chinese title)" text,
"Number of episodes" real,
"Theme song (T) Sub-theme song (ST)" text,
"Genre" text
) | SELECT "Airing date" FROM table_66527 WHERE "Number of episodes" > '20' AND "Genre" = 'modern drama' |
what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello? | CREATE TABLE table_name_14 (
chassis VARCHAR,
driver VARCHAR,
tyre VARCHAR,
engine_† VARCHAR
) | SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello" |
What's Trina Gulliver's high checkout? | CREATE TABLE table_20351295_2 (
high_checkout VARCHAR,
player VARCHAR
) | SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver" |
What is the earliest year a Baylor player made the list? | CREATE TABLE table_name_79 (
year INTEGER,
college_country VARCHAR
) | SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor" |
what is the score on march 8? | CREATE TABLE table_48673 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_48673 WHERE "Date" = 'march 8' |
Name the original title for not nominated result with report on death | CREATE TABLE table_2379 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
) | SELECT "Original title" FROM table_2379 WHERE "Result" = 'Not Nominated' AND "Film title used in nomination" = 'Report on Death' |
What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? | CREATE TABLE table_name_79 (
grid INTEGER,
team VARCHAR,
points VARCHAR
) | SELECT MIN(grid) FROM table_name_79 WHERE team = "mi-jack conquest racing" AND points = "16" |
Give me the comparison about Team_ID over the All_Road by a bar chart, I want to list by the X-axis in ascending please. | 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_Road, Team_ID FROM basketball_match ORDER BY All_Road |
Which game had a result of 126-95? | CREATE TABLE table_75338 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Game" FROM table_75338 WHERE "Result" = '126-95' |
Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com? | CREATE TABLE table_47146 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding" text
) | SELECT "Type" FROM table_47146 WHERE "Incorporated in" = 'netherlands' AND "Principal activities" = 'airline' AND "Company" = 'transavia.com' |
What is the total number of faculty members? | CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT COUNT(*) FROM faculty |
WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov? | CREATE TABLE table_36267 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text,
"Asian team classification" text
) | SELECT "Mountains classification" FROM table_36267 WHERE "Asian team classification" = 'seoul cycling team' AND "Winner" = 'alexandre usov' |
How many points did the Club score that has a try bonus of 7 and 52 tries for ? | CREATE TABLE table_name_52 (
points_for VARCHAR,
tries_for VARCHAR,
try_bonus VARCHAR
) | SELECT points_for FROM table_name_52 WHERE tries_for = "52" AND try_bonus = "7" |
Name the total number of places for vicky gordon and points more than 23 | CREATE TABLE table_name_72 (
place VARCHAR,
artist VARCHAR,
points VARCHAR
) | SELECT COUNT(place) FROM table_name_72 WHERE artist = "vicky gordon" AND points > 23 |
Name the most rank for 2 gold | CREATE TABLE table_24955 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
) | SELECT MIN("Rank") FROM table_24955 WHERE "Gold" = '2' |
What place has the score of 67-74=141? | CREATE TABLE table_name_2 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141 |
In what Year was Rhode Island the National Champion? | CREATE TABLE table_name_77 (
year VARCHAR,
national_champion VARCHAR
) | SELECT year FROM table_name_77 WHERE national_champion = "rhode island" |
What is the Score that has a Home of montreal canadiens on april 11? | CREATE TABLE table_name_6 (
score VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11" |
What is the nationality of the guard who plays at Utah? | CREATE TABLE table_58142 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_58142 WHERE "Position" = 'guard' AND "School/Club Team" = 'utah' |
What year was transamerica field built in? | CREATE TABLE table_40341 (
"Venue" text,
"Location" text,
"Capacity" text,
"Owner" text,
"Environment" text,
"Year Built" text
) | SELECT "Year Built" FROM table_40341 WHERE "Venue" = 'transamerica field' |
What year is the Grim Fandango with a windows platform? | CREATE TABLE table_79493 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Year" FROM table_79493 WHERE "Platform(s)" = 'windows' AND "Game" = 'grim fandango' |
For those records from the products and each product's manufacturer, show me about the distribution of founder and the sum of code , and group by attribute founder in a bar chart. | 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.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder |
Which away team that had 48 as a Tie no? | CREATE TABLE table_11088 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Away team" FROM table_11088 WHERE "Tie no" = '48' |
Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express? | CREATE TABLE table_name_18 (
evening VARCHAR,
sunday VARCHAR,
name VARCHAR
) | SELECT evening FROM table_name_18 WHERE sunday = "no" AND name = "s. vidal/plant express" |
When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have? | CREATE TABLE table_name_67 (
bob_dole VARCHAR,
george_hw_bush VARCHAR,
pat_robertson VARCHAR
) | SELECT bob_dole FROM table_name_67 WHERE george_hw_bush = "81%" AND pat_robertson = "9%" |
What is the average game number that was on october 19? | CREATE TABLE table_46062 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT AVG("Game") FROM table_46062 WHERE "October" = '19' |
What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2 0? | CREATE TABLE table_name_17 (
result VARCHAR,
score VARCHAR,
venue VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_17 WHERE venue = "dakar , senegal" AND date = "3 september 2011" AND score = "2–0" |
When the away team was geelong, what was the away team score? | CREATE TABLE table_10951 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_10951 WHERE "Away team" = 'geelong' |
The match against Oleg Taktarov had what result? | CREATE TABLE table_name_19 (
res VARCHAR,
opponent VARCHAR
) | SELECT res FROM table_name_19 WHERE opponent = "oleg taktarov" |
Who is the player who played for the Miami Sol and went to school at North Carolina State? | CREATE TABLE table_50402 (
"Pick" real,
"Player" text,
"Nationality" text,
"New WNBA Team" text,
"Former WNBA Team" text,
"College/Country/Team" text
) | SELECT "Player" FROM table_50402 WHERE "New WNBA Team" = 'miami sol' AND "College/Country/Team" = 'north carolina state' |
What school did the player Ethan Bennett attend? | CREATE TABLE table_17040 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | SELECT "School" FROM table_17040 WHERE "Player" = 'Ethan Bennett' |
what are all the Canadian air dates where the u.s. air date is may 1, 2009 | CREATE TABLE table_482 (
"Season #" real,
"Series #" real,
"Title" text,
"Canadian airdate" text,
"U.S. airdate" text,
"Production code" real
) | SELECT "Canadian airdate" FROM table_482 WHERE "U.S. airdate" = 'May 1, 2009' |
How many episodes are 122 in the series? | CREATE TABLE table_30972 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT COUNT("No. in season") FROM table_30972 WHERE "No. in series" = '122' |
What is the 7th runner-up of the country with a 10th runner-up greater than 0, a 9th runner-up greater than 0, and an 8th runner-up greater than 1? | CREATE TABLE table_75070 (
"Rank" real,
"Country/Territory" text,
"Nuestra Belleza Latina" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"5th runner-up" real,
"6th runner-up" real,
"7th runner-up" real,
"8th runner-up" real,
"9th runner-up" real,
"10th runner-up" real,
"11th runner-up" real,
"Top 18/20/24/30" real,
"Total" real
) | SELECT SUM("7th runner-up") FROM table_75070 WHERE "10th runner-up" > '0' AND "9th runner-up" > '0' AND "8th runner-up" > '1' |
Which Tournament was on 2 October 2006? | CREATE TABLE table_42891 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Tournament" FROM table_42891 WHERE "Date" = '2 october 2006' |
What Meet has a Time of 1:04.84? | CREATE TABLE table_61166 (
"Distance" text,
"Event" text,
"Time" text,
"Meet" text,
"Location" text
) | SELECT "Meet" FROM table_61166 WHERE "Time" = '1:04.84' |
How many years was ensign n180b a Chassis with 4 points? | CREATE TABLE table_70406 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT SUM("Year") FROM table_70406 WHERE "Points" = '4' AND "Chassis" = 'ensign n180b' |
How many seasons in the top division for the team that finished 005 5th in 2012-2013 | CREATE TABLE table_1510519_1 (
number_of_seasons_in_top_division VARCHAR,
position_in_2012_13 VARCHAR
) | SELECT COUNT(number_of_seasons_in_top_division) FROM table_1510519_1 WHERE position_in_2012_13 = "005 5th" |
Who's the captain of the team whose head coach is Alistair Edwards? | CREATE TABLE table_1301373_1 (
captain VARCHAR,
head_coach VARCHAR
) | SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards" |
What is the Opponent at the Honda Center on March 29? | CREATE TABLE table_name_66 (
opponent VARCHAR,
arena VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29" |
For those records from the products and each product's manufacturer, find name and the average of revenue , and group by attribute name, and visualize them by a bar chart. | 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, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name |
Name the least bronze for silver being less than 0 | CREATE TABLE table_name_45 (
bronze INTEGER,
silver INTEGER
) | SELECT MIN(bronze) FROM table_name_45 WHERE silver < 0 |
Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode? | CREATE TABLE table_36079 (
"Name" text,
"Species Specific" text,
"Intra-molecular structure" text,
"Comparative" text,
"Link" text
) | SELECT "Species Specific" FROM table_36079 WHERE "Comparative" = 'no' AND "Intra-molecular structure" = 'no' AND "Link" = 'sourcecode' |
Who in the high rebounds is in the honda center 15,625 location attendance? | CREATE TABLE table_29873 (
"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_29873 WHERE "Location Attendance" = 'Honda Center 15,625' |
Who was the outgoing manager when the incoming manager was augusto in cio? | CREATE TABLE table_61752 (
"Team" text,
"Outgoing manage" text,
"Manner" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) | SELECT "Outgoing manage" FROM table_61752 WHERE "Incoming manager" = 'augusto inácio' |
What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries? | CREATE TABLE table_51420 (
"Player" text,
"Position" text,
"Tries" real,
"Goals" real,
"Points" real
) | SELECT MIN("Points") FROM table_51420 WHERE "Tries" > '23' AND "Player" = 'tevita vaikona' |
age between 55 _ 85 ; | CREATE TABLE table_train_84 (
"id" int,
"gender" string,
"mini_mental_state_examination_mmse" int,
"modified_hachinski_ischemia_scale" int,
"post_menopausal" bool,
"allergy_to_rifaximin" bool,
"surgically_sterilized" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_84 WHERE age >= 55 AND age <= 85 |
What is the original air date for episode 4? | CREATE TABLE table_23399481_3 (
original_air_date VARCHAR,
season__number VARCHAR
) | SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4 |
What's the sum of points for the 1963 season when there are more than 30 games? | CREATE TABLE table_80429 (
"Season" text,
"Team Name" text,
"Games" real,
"Losses" real,
"Points" real
) | SELECT SUM("Points") FROM table_80429 WHERE "Season" = '1963' AND "Games" > '30' |
Which Share has a weekly Rank of 8 and is dated 15 June? | CREATE TABLE table_59559 (
"Show" text,
"Date" text,
"Official ratings (millions)" real,
"Weekly rank" text,
"Share" text
) | SELECT "Share" FROM table_59559 WHERE "Weekly rank" = '8' AND "Date" = '15 june' |
Give me the comparison about Team_ID over the All_Neutral , I want to show All_Neutral in desc order. | 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, Team_ID FROM basketball_match ORDER BY All_Neutral DESC |
Opened prior to 1877 only 2.44km from Wellington, when did this station close? | CREATE TABLE table_59371 (
"Station" text,
"Distance from Wellington" text,
"Height above sea level (m)" text,
"Opened" real,
"Closed" text
) | SELECT "Closed" FROM table_59371 WHERE "Opened" < '1877' AND "Distance from Wellington" = '2.44km' |
what is the total number of names ? | CREATE TABLE table_204_29 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT COUNT("name") FROM table_204_29 |
What is the maximum renewable energy (gw h) for the state of Delaware? | CREATE TABLE table_25244412_1 (
renewable_electricity__gw INTEGER,
state VARCHAR
) | SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = "Delaware" |
Name the fsb for atom z540 | CREATE TABLE table_21017 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "FSB" FROM table_21017 WHERE "Model number" = 'Atom Z540' |
Name the tournament for grass surface and opponent in the final being paul baccanello | CREATE TABLE table_71978 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Tournament" FROM table_71978 WHERE "Surface" = 'grass' AND "Opponent in the final" = 'paul baccanello' |
List all channel names ordered by their rating in percent from big to small. | CREATE TABLE broadcast (
channel_id number,
program_id number,
time_of_day text
)
CREATE TABLE broadcast_share (
channel_id number,
program_id number,
date text,
share_in_percent number
)
CREATE TABLE program (
program_id number,
name text,
origin text,
launch number,
owner text
)
CREATE TABLE channel (
channel_id number,
name text,
owner text,
share_in_percent number,
rating_in_percent number
) | SELECT name FROM channel ORDER BY rating_in_percent DESC |
Visualize a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and display by the X in descending please. | 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, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC |
what is the sum of attendance of week 11 | CREATE TABLE table_name_62 (
attendance INTEGER,
week VARCHAR
) | SELECT SUM(attendance) FROM table_name_62 WHERE week = 11 |
What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has? | CREATE TABLE table_52656 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening gown" real,
"Average" real
) | SELECT MIN("Evening gown") FROM table_52656 WHERE "Average" < '8.23' AND "Interview" = '8.11' AND "Swimsuit" > '7.84' |
If played is 22 and the tries against are 43, what are the points? | CREATE TABLE table_74945 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points for" FROM table_74945 WHERE "Played" = '22' AND "Tries against" = '43' |
What is the Home team score for the Home team from South Melbourne? | CREATE TABLE table_51672 (
"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_51672 WHERE "Home team" = 'south melbourne' |
What first class team does sanath jayasuriya play for? | CREATE TABLE table_77939 (
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
) | SELECT "First Class Team" FROM table_77939 WHERE "Player" = 'sanath jayasuriya' |
What is the title of season 3 ep# 12? | CREATE TABLE table_17683 (
"Series Ep #" real,
"Season 3 Ep #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Airdate" text,
"Production Code" real
) | SELECT "Title" FROM table_17683 WHERE "Season 3 Ep #" = '12' |
how many height m ( ft ) with frequency mhz being 100.1 | CREATE TABLE table_13998897_1 (
height_m___ft__ VARCHAR,
frequency_mhz VARCHAR
) | SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE frequency_mhz = "100.1" |
How many 'series' were in the 12th 'position? | CREATE TABLE table_26473176_1 (
series VARCHAR,
position VARCHAR
) | SELECT COUNT(series) FROM table_26473176_1 WHERE position = "12th" |
What is Roy Hall's highest round? | CREATE TABLE table_39723 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_39723 WHERE "Name" = 'roy hall' |
What is the sum of Bronze when the rank is more than 11 and gold is less than 0? | CREATE TABLE table_name_47 (
bronze INTEGER,
rank VARCHAR,
gold VARCHAR
) | SELECT SUM(bronze) FROM table_name_47 WHERE rank > 11 AND gold < 0 |
What was the original air date where there were u.s. viewers (millions) is 5.60? | CREATE TABLE table_28042 (
"Series no." real,
"No. in season" real,
"Title" text,
"Written by" text,
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Original air date" FROM table_28042 WHERE "U.S. viewers (millions)" = '5.60' |
Name the score for december 27 | CREATE TABLE table_23284271_6 (
score VARCHAR,
date VARCHAR
) | SELECT COUNT(score) FROM table_23284271_6 WHERE date = "December 27" |
A bar chart about what is the average rating star for each reviewer?, I want to show from high to low by the y axis. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY AVG(T1.stars) DESC |
what are the endings of examples achilles, appendices, f ces | CREATE TABLE table_17798093_20 (
ending VARCHAR,
examples VARCHAR
) | SELECT ending FROM table_17798093_20 WHERE examples = "Achilles, appendices, fæces" |
The plural abbreviation of ll. uses what plural word? | CREATE TABLE table_name_94 (
plural_word VARCHAR,
plural_abbreviation VARCHAR
) | SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll." |
Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217? | CREATE TABLE table_39493 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MIN("Pick #") FROM table_39493 WHERE "College" = 'troy state' AND "Name" = 'reggie dwight' AND "Overall" < '217' |
What is the 2006 when the 2013 is 1r, and the 2012 is 1r? | CREATE TABLE table_75955 (
"Tournament" text,
"2006" text,
"2009" text,
"2012" text,
"2013" text
) | SELECT "2006" FROM table_75955 WHERE "2013" = '1r' AND "2012" = '1r' |
What was the rank for 1.26 -Pts in game 1458? | CREATE TABLE table_name_86 (
rank VARCHAR,
ø_pts VARCHAR,
games VARCHAR
) | SELECT COUNT(rank) FROM table_name_86 WHERE ø_pts > 1.26 AND games = 1458 |
What was the smallest crowd size for away team st kilda? | CREATE TABLE table_name_25 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_25 WHERE away_team = "st kilda" |
Tell me the lowest edition for winner of arsenal and third of celtic | CREATE TABLE table_name_13 (
edition INTEGER,
winner VARCHAR,
third VARCHAR
) | SELECT MIN(edition) FROM table_name_13 WHERE winner = "arsenal" AND third = "celtic" |
What is the population of northfield parish that has an area less than 342.4? | CREATE TABLE table_name_50 (
population INTEGER,
area_km_2 VARCHAR,
official_name VARCHAR
) | SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = "northfield" |
Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28? | CREATE TABLE table_name_52 (
score VARCHAR,
date VARCHAR,
home VARCHAR,
visitor VARCHAR
) | SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28" |
9:30 PM when the 8:00 PM is l'auberge du chien noir? | CREATE TABLE table_10416 (
"7:00 PM" text,
"8:00 PM" text,
"8:30 PM" text,
"9:00 PM" text,
"9:30 PM" text,
"10:00 PM" text
) | SELECT "9:30 PM" FROM table_10416 WHERE "8:00 PM" = 'l''auberge du chien noir' |
Which Type has a Capacity of 28 passengers, and a Number of 16? | CREATE TABLE table_8430 (
"Number" text,
"Builder" text,
"Type" text,
"Date" real,
"Length" text,
"Capacity" text
) | SELECT "Type" FROM table_8430 WHERE "Capacity" = '28 passengers' AND "Number" = '16' |
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States? | CREATE TABLE table_name_27 (
total INTEGER,
gold VARCHAR,
bronze VARCHAR,
nation VARCHAR
) | SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1 |
what is the difference between the number of employees at mundelein elementary school district 75 and fremon school district 79 ? | CREATE TABLE table_203_737 (
id number,
"#" number,
"employer" text,
"# of employees" number
) | SELECT ABS((SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'mundelein elementary school district 75') - (SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'fremont school district 79')) |
What did South Melbourne score when they were the Away team? | CREATE TABLE table_name_21 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_21 WHERE away_team = "south melbourne" |
Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso? | CREATE TABLE table_50089 (
"Date" real,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Tournament" FROM table_50089 WHERE "Surface" = 'carpet' AND "Date" < '1995' AND "Opponent in the final" = 'ken flach robert seguso' |
Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000. | CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
) | SELECT investor FROM entrepreneur WHERE money_requested > 140000 INTERSECT SELECT investor FROM entrepreneur WHERE money_requested < 120000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.