instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6 4, 6 2? | CREATE TABLE table_name_95 (
tournament VARCHAR,
score VARCHAR,
outcome VARCHAR,
surface VARCHAR
) | SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–2" |
What was the date of the game that tied at 3? | CREATE TABLE table_name_56 (
date VARCHAR,
tie_no VARCHAR
) | SELECT date FROM table_name_56 WHERE tie_no = "3" |
What is the average Area (km ) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)? | CREATE TABLE table_name_30 (
area__km²_ INTEGER,
name_of_community VARCHAR,
excised_from VARCHAR,
population VARCHAR
) | SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = "shire of cook" AND population < 463 AND name_of_community = "wujal wujal (bloomfield river)" |
How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)? | CREATE TABLE table_61050 (
"Model" text,
"Years" text,
"Engine" text,
"Power" text,
"0\u2013100km/h (62mph)" text,
"Top Speed" text
) | SELECT "0\u2013100km/h (62mph)" FROM table_61050 WHERE "Model" = 'slk200k' AND "Top Speed" = '236km/h (147mph)' |
What is the largest silver number when the rank is smaller than 1? | CREATE TABLE table_name_92 (
silver INTEGER,
rank INTEGER
) | SELECT MAX(silver) FROM table_name_92 WHERE rank < 1 |
What is the attendance for the game against the Kansas City Chiefs earlier than week 13? | CREATE TABLE table_name_32 (
attendance INTEGER,
opponent VARCHAR,
week VARCHAR
) | SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "kansas city chiefs" AND week < 13 |
Which NFL team has a player that came from a college in Washington? | CREATE TABLE table_47654 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "NFL Team" FROM table_47654 WHERE "College" = 'washington' |
What home team played Collingwood as the away team? | CREATE TABLE table_55738 (
"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_55738 WHERE "Away team" = 'collingwood' |
what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9? | CREATE TABLE table_name_31 (
position INTEGER,
drawn VARCHAR,
points_1 VARCHAR,
goals_for VARCHAR
) | SELECT SUM(position) FROM table_name_31 WHERE points_1 < 36 AND goals_for < 40 AND drawn < 9 |
How many type of jobs do they have? | CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) | SELECT COUNT(DISTINCT job) FROM person |
Return a bar chart on what is the average age for each gender?, I want to list by the mean age in descending. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC |
For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross? | CREATE TABLE table_name_43 (
worldwide_gross VARCHAR,
director_s_ VARCHAR,
rank VARCHAR,
studio VARCHAR
) | SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell" |
Give the ids of documents with expenses that have the budget code 'SF'. | CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
) | SELECT document_id FROM documents_with_expenses WHERE budget_type_code = 'SF' |
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won? | CREATE TABLE table_62130 (
"Year" real,
"Grand Slam" text,
"Round" text,
"Winner" text,
"Loser" text
) | SELECT "Grand Slam" FROM table_62130 WHERE "Year" = '1987' AND "Round" = 'first round' AND "Winner" = 'ivan lendl' |
When george hill (29) has the highest amount of points what is the date? | CREATE TABLE table_73464 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Date" FROM table_73464 WHERE "High points" = 'George Hill (29)' |
What was the Winter Olympics was Japan as the country? | CREATE TABLE table_name_38 (
winter_olympics VARCHAR,
country VARCHAR
) | SELECT winter_olympics FROM table_name_38 WHERE country = "japan" |
Where was the location attendance when Minnesota played? | CREATE TABLE table_8150 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_8150 WHERE "Team" = 'minnesota' |
Which tournament resulted in 6th place? | CREATE TABLE table_58606 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Tournament" FROM table_58606 WHERE "Result" = '6th' |
What is the lowest overall money list rank? | CREATE TABLE table_24330912_1 (
money_list_rank INTEGER
) | SELECT MIN(money_list_rank) FROM table_24330912_1 |
What club does Manuel Fernandes coach? | CREATE TABLE table_60066 (
"Club" text,
"Head Coach" text,
"City" text,
"Stadium" text,
"2003\u20132004 season" text
) | SELECT "Club" FROM table_60066 WHERE "Head Coach" = 'manuel fernandes' |
Who drove the car with the n175 chassis in round 13? | CREATE TABLE table_name_1 (
driver VARCHAR,
chassis VARCHAR,
rounds VARCHAR
) | SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13" |
What is Country, when Score is 71-71-69=211? | CREATE TABLE table_51136 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_51136 WHERE "Score" = '71-71-69=211' |
What is the location with the most cinemas opened in year 2010 or later? | CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
)
CREATE TABLE film (
film_id number,
rank_in_series number,
number_in_season number,
title text,
directed_by text,
original_air_date text,
production_code text
) | SELECT location FROM cinema WHERE openning_year >= 2010 GROUP BY location ORDER BY COUNT(*) DESC LIMIT 1 |
english ( wumc ) or spanish speaking ( dh ) | CREATE TABLE table_train_256 (
"id" int,
"mini_mental_state_examination_mmse" int,
"language" string,
"mild_cognitive_impairment" bool,
"moca_score" int,
"dementia" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_256 WHERE language = 'english' OR language = 'spanish' |
what is the rank of adam gilchrist | CREATE TABLE table_19870086_24 (
rank VARCHAR,
player VARCHAR
) | SELECT COUNT(rank) FROM table_19870086_24 WHERE player = "Adam Gilchrist" |
What job is at red bank? | CREATE TABLE table_15803 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
) | SELECT "Occupation" FROM table_15803 WHERE "Residence" = 'red bank' |
How many episodes received rating of 8.2? | CREATE TABLE table_24910733_2 (
episode VARCHAR,
rating VARCHAR
) | SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2" |
What is the highest Year, when Opponent is #2 Syracuse? | CREATE TABLE table_name_52 (
year INTEGER,
opponent VARCHAR
) | SELECT MAX(year) FROM table_name_52 WHERE opponent = "#2 syracuse" |
Where is the frequency 92.3mhz? | CREATE TABLE table_2013 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | SELECT "Location" FROM table_2013 WHERE "Frequency" = '92.3MHz' |
Find the number of members living in each address. | CREATE TABLE shop (
shop_id number,
address text,
num_of_staff text,
score number,
open_year text
)
CREATE TABLE happy_hour (
hh_id number,
shop_id number,
month text,
num_of_shaff_in_charge number
)
CREATE TABLE member (
member_id number,
name text,
membership_card text,
age number,
time_of_purchase number,
level_of_membership number,
address text
)
CREATE TABLE happy_hour_member (
hh_id number,
member_id number,
total_amount number
) | SELECT COUNT(*), address FROM member GROUP BY address |
is k2 taller than kangchenjunga ? | CREATE TABLE table_204_570 (
id number,
"rank" number,
"mountain" text,
"height (m)" number,
"height (ft)" number,
"range" text,
"coordinates" text,
"prominence (m)" number,
"parent mountain" text,
"first ascent" number,
"ascents (failed attempts) bef.2004" text
) | SELECT (SELECT "height (m)" FROM table_204_570 WHERE "mountain" = 'k2') > (SELECT "height (m)" FROM table_204_570 WHERE "mountain" = 'kangchenjunga') |
Name the surface for 12 september 2006 | CREATE TABLE table_name_3 (
surface VARCHAR,
date VARCHAR
) | SELECT surface FROM table_name_3 WHERE date = "12 september 2006" |
azteca 7 and azteca 13 are both owned by whom ? | CREATE TABLE table_204_779 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
) | SELECT "owner" FROM table_204_779 WHERE "network name" = 'azteca 7' |
Name the visitor for detroit on february 24 | CREATE TABLE table_name_55 (
visitor VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_55 WHERE home = "detroit" AND date = "february 24" |
For the Temple Square station, what is the park & ride lot name? | CREATE TABLE table_59133 (
"Station Name" text,
"Opening Year" text,
"Municipality" text,
"Park and Ride Lot" text,
"Free Fare Zone" text
) | SELECT "Park and Ride Lot" FROM table_59133 WHERE "Station Name" = 'temple square' |
What is the minimum mundubbera when biggenden is 1882 | CREATE TABLE table_12526990_1 (
mundubbera INTEGER,
biggenden VARCHAR
) | SELECT MIN(mundubbera) FROM table_12526990_1 WHERE biggenden = 1882 |
What was the earliest year in which long jump was performed in the world indoor Championships in 5th position? | CREATE TABLE table_70414 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Performance" text
) | SELECT MIN("Year") FROM table_70414 WHERE "Performance" = 'long jump' AND "Competition" = 'world indoor championships' AND "Position" = '5th' |
Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100. | CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
) | SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100 |
What is the number of party in the arkansas 1 district | CREATE TABLE table_1341930_5 (
party VARCHAR,
district VARCHAR
) | SELECT COUNT(party) FROM table_1341930_5 WHERE district = "Arkansas 1" |
What was the nationality of the skater with 108.8 points? | CREATE TABLE table_name_52 (
nation VARCHAR,
points VARCHAR
) | SELECT nation FROM table_name_52 WHERE points = 108.8 |
Which Series are on september 15, 2007? | CREATE TABLE table_34351 (
"Date" text,
"Site" text,
"Sport" text,
"Winning team" text,
"Series" text
) | SELECT "Series" FROM table_34351 WHERE "Date" = 'september 15, 2007' |
What is the record for the opponent St. Louis Cardinals? | CREATE TABLE table_66070 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text
) | SELECT "Record" FROM table_66070 WHERE "Opponent" = 'st. louis cardinals' |
Which films participated in the 30th Hawaii International Film Festival? | CREATE TABLE table_31285 (
"Film Festival" text,
"Date of ceremony" text,
"Category" text,
"Participants/Recipients" text,
"Result" text
) | SELECT "Participants/Recipients" FROM table_31285 WHERE "Film Festival" = '30th Hawaii International Film Festival' |
what is the competition played in budva against italy? | CREATE TABLE table_name_56 (
competition VARCHAR,
town VARCHAR,
opponent VARCHAR
) | SELECT competition FROM table_name_56 WHERE town = "budva" AND opponent = "italy" |
Which video has a 16:9 aspect? | CREATE TABLE table_64779 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Network" text
) | SELECT "Video" FROM table_64779 WHERE "Aspect" = '16:9' |
Which Perth's gold coast and Adelaide were yes when Auckland was no? | CREATE TABLE table_68328 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Perth" FROM table_68328 WHERE "Gold Coast" = 'yes' AND "Adelaide" = 'yes' AND "Auckland" = 'no' |
How many items are listed under gdp per capita under the nation of Burkina Faso? | CREATE TABLE table_2248991_2 (
gdp_per_capita VARCHAR,
nation VARCHAR
) | SELECT COUNT(gdp_per_capita) FROM table_2248991_2 WHERE nation = "Burkina Faso" |
What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal? | CREATE TABLE table_6567 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_6567 WHERE "Silver" = '0' AND "Rank" = '3' AND "Total" < '1' |
For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties? | CREATE TABLE table_name_21 (
ties INTEGER,
games_played VARCHAR,
wins VARCHAR,
goals_against VARCHAR
) | SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8 |
Tell me the highest total when the horse is spender s | CREATE TABLE table_name_99 (
total INTEGER,
horse VARCHAR
) | SELECT MAX(total) FROM table_name_99 WHERE horse = "spender s" |
Which away team scored 17.17 (119)? | CREATE TABLE table_10268 (
"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_10268 WHERE "Away team score" = '17.17 (119)' |
How many statuses are listed for Wayne county? | CREATE TABLE table_22815568_3 (
status VARCHAR,
county VARCHAR
) | SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne" |
Which Opponent has Attendances of 60,594? | CREATE TABLE table_name_34 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_34 WHERE attendance = "60,594" |
What are the age groups for the Big League World Series? | CREATE TABLE table_name_26 (
age_groups VARCHAR,
competition_name VARCHAR
) | SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series" |
What postseason has a win% between 0.40700000000000003 and 108 with a rank of 1? | CREATE TABLE table_55622 (
"Year" real,
"Rank" real,
"Games" real,
"Win%" real,
"Postseason" text
) | SELECT "Postseason" FROM table_55622 WHERE "Win%" > '0.40700000000000003' AND "Games" < '108' AND "Rank" = '1' |
Who was the home team of the match on 21.10.07, which had bsc young boys (asl) as the geust? | CREATE TABLE table_name_30 (
home VARCHAR,
date VARCHAR,
geust VARCHAR
) | SELECT home FROM table_name_30 WHERE date = "21.10.07" AND geust = "bsc young boys (asl)" |
What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13? | CREATE TABLE table_name_83 (
week INTEGER,
attendance VARCHAR,
result VARCHAR
) | SELECT MAX(week) FROM table_name_83 WHERE attendance = "64,900" AND result = "l 34-13" |
Which player was drafted higher than 374 and went to the school Stephen F. Austin? | CREATE TABLE table_33417 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT "Player" FROM table_33417 WHERE "Overall" < '374' AND "School/Club Team" = 'stephen f. austin' |
What is the series score of the game with Vancouver as the visiting team on April 16? | CREATE TABLE table_58268 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Series" text
) | SELECT "Series" FROM table_58268 WHERE "Visitor" = 'vancouver' AND "Date" = 'april 16' |
Who are all the players from the united states? | CREATE TABLE table_24302700_6 (
name VARCHAR,
nationality VARCHAR
) | SELECT name FROM table_24302700_6 WHERE nationality = "United States" |
Show the smallest enrollment of each state, and I want to sort Y-axis in descending order please. | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT state, MIN(enr) FROM College GROUP BY state ORDER BY MIN(enr) DESC |
What is the total score for the 36 arrow finals event? | CREATE TABLE table_name_72 (
score VARCHAR,
event VARCHAR
) | SELECT COUNT(score) FROM table_name_72 WHERE event = "36 arrow finals" |
who is the home team when tie no is less than 7 and the away team is havant & waterlooville? | CREATE TABLE table_53730 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | SELECT "Home team" FROM table_53730 WHERE "Tie no" < '7' AND "Away team" = 'havant & waterlooville' |
What is the nature of the incident that's a bomb attack? | CREATE TABLE table_68827 (
"Date" text,
"Location" text,
"Nature of incident" text,
"Circumstances" text,
"Casualties" text
) | SELECT "Nature of incident" FROM table_68827 WHERE "Circumstances" = 'bomb attack' |
name the date where score time is w 74-63 | CREATE TABLE table_72853 (
"Game" real,
"Date" text,
"Opponent" text,
"Score/Time" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Arena/Attendance" text,
"Record" text
) | SELECT "Date" FROM table_72853 WHERE "Score/Time" = 'W 74-63' |
Who won the mens singles when sayaka sato won the womens singles? | CREATE TABLE table_12275551_1 (
mens_singles VARCHAR,
womens_singles VARCHAR
) | SELECT mens_singles FROM table_12275551_1 WHERE womens_singles = "Sayaka Sato" |
What is the Netflix episode that has a series episode of 6-02? | CREATE TABLE table_name_98 (
netflix VARCHAR,
series_ep VARCHAR
) | SELECT netflix FROM table_name_98 WHERE series_ep = "6-02" |
Name the Non-Suited Match that has greater than 6 Number of Decks. | CREATE TABLE table_name_60 (
non_suited_match VARCHAR,
number_of_decks INTEGER
) | SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6 |
what is the only model of these aircraft to originate in canada ? | CREATE TABLE table_204_710 (
id number,
"model" text,
"origin" text,
"type" text,
"versions" text,
"in service" text,
"notes" text
) | SELECT "model" FROM table_204_710 WHERE "origin" = 'canada' |
What is the nationality of the Washington Capitals? | CREATE TABLE table_name_68 (
nationality VARCHAR,
nhl_team VARCHAR
) | SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals" |
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and price , and group by attribute headquarter. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter |
What is 4zr's callsign? | CREATE TABLE table_name_67 (
callsign VARCHAR,
on_air_id VARCHAR
) | SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr" |
What was the final score when tracy austin was runner up? | CREATE TABLE table_24032 (
"Series Year" real,
"Series-Ending Tournament" text,
"Location" text,
"Surface" text,
"Champion" text,
"Runner-up" text,
"Score in Final" text
) | SELECT "Score in Final" FROM table_24032 WHERE "Runner-up" = 'Tracy Austin' |
How many players were 6'1' and from Columbia, South Carolina? | CREATE TABLE table_72574 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT COUNT("Position") FROM table_72574 WHERE "Height" = '6''1' AND "Hometown" = 'Columbia, South Carolina' |
With a date of 8/3/08, what was the length of the victory margin? | CREATE TABLE table_1500 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Victory Margin (in lengths)" text,
"Runner up" text,
"Track" text,
"Surface" text,
"Date" text
) | SELECT COUNT("Victory Margin (in lengths)") FROM table_1500 WHERE "Date" = '8/3/08' |
What college did hunter henry go to? | CREATE TABLE table_10728 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "College" FROM table_10728 WHERE "Player" = 'hunter henry' |
What is the draw for a match that had 10 points? | CREATE TABLE table_43191 (
"Team" text,
"Match" text,
"Points" text,
"Draw" text,
"Lost" text
) | SELECT "Draw" FROM table_43191 WHERE "Points" = '10' |
What did the home team score when playing against Collingwood? | CREATE TABLE table_55442 (
"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_55442 WHERE "Away team" = 'collingwood' |
If the Original Air Date is 10January2008, what directors released on that date? | CREATE TABLE table_16976 (
"Total No." real,
"Celebrity" text,
"Director" text,
"Original air date" text,
"Viewers" text
) | SELECT "Director" FROM table_16976 WHERE "Original air date" = '10January2008' |
Which virtue is acedia(Latin)? | CREATE TABLE table_36358 (
"Virtue" text,
"Latin" text,
"Gloss" text,
"(Vice)" text,
"(Latin)" text
) | SELECT "Virtue" FROM table_36358 WHERE "(Latin)" = 'acedia' |
Name the result for new york 8 | CREATE TABLE table_73139 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_73139 WHERE "District" = 'New York 8' |
What is the date of appointment for outgoing manager Campbell Money | CREATE TABLE table_11206916_2 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
) | SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money" |
which opponents in the u.s. championships played after 1945 and had a score of 3 6, 6 4, 2 6, 6 3, 20 18? | CREATE TABLE table_77473 (
"Year" real,
"Championship" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Opponents in the final" FROM table_77473 WHERE "Championship" = 'u.s. championships' AND "Year" > '1945' AND "Score" = '3–6, 6–4, 2–6, 6–3, 20–18' |
What code is used to represent the currency of Croatian Kuna? | CREATE TABLE table_name_34 (
code VARCHAR,
currency VARCHAR
) | SELECT code FROM table_name_34 WHERE currency = "croatian kuna" |
Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi? | CREATE TABLE table_51045 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
) | SELECT "Venue" FROM table_51045 WHERE "Score" = '0:0' AND "Season" > '2010' AND "Team 1" = 't&t hanoi' |
Which Team wins has an Individual winner smaller than 1 and Total win larger than 1? | CREATE TABLE table_name_60 (
team_wins INTEGER,
individual_winners VARCHAR,
total_wins VARCHAR
) | SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1 |
What artist's song was performed in the week with theme of Billboard #1? | CREATE TABLE table_name_89 (
artist VARCHAR,
theme VARCHAR
) | SELECT artist FROM table_name_89 WHERE theme = "billboard #1" |
Who was the winning driver when Michael Schumacher had the pole and the fastest lap? | CREATE TABLE table_16659 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Winning Driver" FROM table_16659 WHERE "Fastest Lap" = 'Michael Schumacher' AND "Pole Position" = 'Michael Schumacher' |
What was the score on September 1, 1996? | CREATE TABLE table_11214 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) | SELECT "Result" FROM table_11214 WHERE "Date" = 'september 1, 1996' |
Group by services attribute in station table and compute the total number of services with a bar chart, order by the services in ascending. | CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE route (
train_id int,
station_id int
) | SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY services |
What record has @ detroit as the opponent? | CREATE TABLE table_name_61 (
record VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_name_61 WHERE opponent = "@ detroit" |
How many audition city's are there with an episode air date of June 24, 2010? | CREATE TABLE table_27615445_1 (
audition_city VARCHAR,
episode_air_date VARCHAR
) | SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010" |
What is the highest Place with more than 3 draws, for the Song 'dajana', with less than 31 points? | CREATE TABLE table_65847 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
) | SELECT MAX("Place") FROM table_65847 WHERE "Draw" > '3' AND "Song" = 'dajana' AND "Points" < '31' |
Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, could you show in desc by the y-axis please? | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(School_ID) DESC |
What is the average pick of player paul maclean, who had a draft before 1978? | CREATE TABLE table_12802 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT AVG("Pick") FROM table_12802 WHERE "Player" = 'paul maclean' AND "Draft" < '1978' |
What is the perfect stem for the word that has a future stem of emango? | CREATE TABLE table_name_79 (
perfect_stem VARCHAR,
future_stem VARCHAR
) | SELECT perfect_stem FROM table_name_79 WHERE future_stem = "emango" |
What is the total overall in round 1, in which Charles White was a player? | CREATE TABLE table_32200 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT SUM("Overall") FROM table_32200 WHERE "Player" = 'charles white' AND "Round" < '1' |
What was the course type on 22 May? | CREATE TABLE table_11707 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Type" FROM table_11707 WHERE "Date" = '22 may' |
What is the planet associated with the direction of south? | CREATE TABLE table_14850099_18 (
planet VARCHAR,
cardinal_direction VARCHAR
) | SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South" |
Which cornerback round has a pick number lower than 26 and an overall higher than 41? | CREATE TABLE table_name_36 (
round INTEGER,
overall VARCHAR,
pick__number VARCHAR,
position VARCHAR
) | SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41 |