instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
Which Grid has a Driver of cristiano da matta, and Points smaller than 33? | CREATE TABLE table_name_98 (
grid INTEGER,
driver VARCHAR,
points VARCHAR
) | SELECT SUM(grid) FROM table_name_98 WHERE driver = "cristiano da matta" AND points < 33 |
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7 | CREATE TABLE table_name_92 (
merconorte INTEGER,
superliga VARCHAR,
interliga VARCHAR,
matches VARCHAR
) | SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7 |
Show all game names played by Linda Smith | CREATE TABLE Student (
Stuid VARCHAR,
Lname VARCHAR,
Fname VARCHAR
)
CREATE TABLE Video_games (
gameid VARCHAR
)
CREATE TABLE Plays_games (
gameid VARCHAR,
Stuid VARCHAR
) | SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda" |
Name the density for | CREATE TABLE table_2013618_1 (
density VARCHAR,
traditional VARCHAR
) | SELECT density FROM table_2013618_1 WHERE traditional = "古田縣" |
What is the wattage/TDP associated with model name 4x0? | CREATE TABLE table_26575 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
) | SELECT "TDP" FROM table_26575 WHERE "Model (list)" = '4x0' |
What is the first year for Popgun? | CREATE TABLE table_55144 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
) | SELECT "First Year" FROM table_55144 WHERE "Title" = 'popgun' |
How many draws did Mortlake have when the losses were more than 5? | CREATE TABLE table_name_94 (
draws VARCHAR,
losses VARCHAR,
club VARCHAR
) | SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake" |
There were 68 worcs f-c matches played on Chester Road North Ground. | CREATE TABLE table_16891 (
"Name of ground" text,
"Location" text,
"First-class span" text,
"Worcs f-c matches" real,
"List A span" text,
"Worcs LA matches" real
) | SELECT "Worcs f-c matches" FROM table_16891 WHERE "Name of ground" = 'Chester Road North Ground' |
How many Laps were there in 2010? | CREATE TABLE table_name_46 (
laps INTEGER,
year VARCHAR
) | SELECT SUM(laps) FROM table_name_46 WHERE year = 2010 |
What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339? | CREATE TABLE table_name_74 (
name VARCHAR,
ofsted_number VARCHAR,
type VARCHAR,
dcsf_number VARCHAR
) | SELECT name FROM table_name_74 WHERE type = "primary" AND dcsf_number > 2337 AND ofsted_number < 135339 |
How many teams had a 99.3% capacity rating? | CREATE TABLE table_28884858_2 (
team VARCHAR,
capacity_percentage VARCHAR
) | SELECT COUNT(team) FROM table_28884858_2 WHERE capacity_percentage = "99.3%" |
How many rebounds did Tammy Sutton-Brown have? | CREATE TABLE table_25353861_5 (
rebounds VARCHAR,
player VARCHAR
) | SELECT rebounds FROM table_25353861_5 WHERE player = "Tammy Sutton-Brown" |
What format was released April 16, 2009? | CREATE TABLE table_65415 (
"Region" text,
"Date" text,
"Format" text,
"Label" text,
"Edition" text
) | SELECT "Format" FROM table_65415 WHERE "Date" = 'april 16, 2009' |
what was the only single released in 1993 ? | CREATE TABLE table_204_56 (
id number,
"year" number,
"song" text,
"us r&b" number,
"us rap" number,
"album" text
) | SELECT "song" FROM table_204_56 WHERE "year" = 1993 |
Name the number of species with sepal width of 3.4 and sepal length of 5.4 | CREATE TABLE table_16136 (
"Sepal length" text,
"Sepal width" text,
"Petal length" text,
"Petal width" text,
"Species" text
) | SELECT COUNT("Species") FROM table_16136 WHERE "Sepal width" = '3.4' AND "Sepal length" = '5.4' |
What episode number in the series is 'tough love'? | CREATE TABLE table_27502 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT MAX("No. in series") FROM table_27502 WHERE "Title" = 'Tough Love' |
How many games were on December 5? | CREATE TABLE table_9378 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT SUM("Game") FROM table_9378 WHERE "Date" = 'december 5' |
What was the location and it's corresponding attendance during the game against Los Angeles? | CREATE TABLE table_30049462_4 (
location_attendance VARCHAR,
team VARCHAR
) | SELECT location_attendance FROM table_30049462_4 WHERE team = "Los Angeles" |
What is the average score for the player who is T5 in the United States? | CREATE TABLE table_76810 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT AVG("Score") FROM table_76810 WHERE "Place" = 't5' AND "Country" = 'united states' |
What place had a home team score 22.19 (151)? | CREATE TABLE table_11700 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_11700 WHERE "Home team score" = '22.19 (151)' |
What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States? | CREATE TABLE table_70727 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
) | SELECT "Genre" FROM table_70727 WHERE "Release-year of first charted record" = '1968' AND "Country of origin" = 'united states' |
How many production codes are there for the episode that had 4.36 million u.s. viewers? | CREATE TABLE table_30247 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
) | SELECT COUNT("Production code") FROM table_30247 WHERE "U.S. viewers (million)" = '4.36' |
what is the position in table when the team is hartlepool united? | CREATE TABLE table_64562 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Position in table" FROM table_64562 WHERE "Team" = 'hartlepool united' |
What's the opening when white is Anand with fewer than 61 moves for a result of ? | CREATE TABLE table_name_83 (
opening VARCHAR,
result VARCHAR,
white VARCHAR,
moves VARCHAR
) | SELECT opening FROM table_name_83 WHERE white = "anand" AND moves < 61 AND result = "½–½" |
What is the average crowd size for Brunswick street oval? | CREATE TABLE table_57312 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_57312 WHERE "Venue" = 'brunswick street oval' |
Name the agg for team 2 of asl sport guyanais. | CREATE TABLE table_name_34 (
agg VARCHAR,
team_2 VARCHAR
) | SELECT agg FROM table_name_34 WHERE team_2 = "asl sport guyanais" |
What is the Time with a Ground that is humber college north? | CREATE TABLE table_75860 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Time" FROM table_75860 WHERE "Ground" = 'humber college north' |
What is on at 1:30pm before One Life to Live at 2:00pm? | CREATE TABLE table_12244 (
"7:00 am" text,
"8:00 am" text,
"9:00 am" text,
"11:00 am" text,
"noon" text,
"12:30 pm" text,
"1:00 pm" text,
"1:30 pm" text,
"2:00 pm" text,
"3:00 pm" text,
"3:30 pm" text,
"4:00 pm" text,
"4:30 pm" text,
"5:00 pm" text,
"6:30 pm" text
) | SELECT "1:30 pm" FROM table_12244 WHERE "2:00 pm" = 'one life to live' |
What is the latest after when the player is Steve Stricker? | CREATE TABLE table_24108789_4 (
after INTEGER,
player VARCHAR
) | SELECT MAX(after) FROM table_24108789_4 WHERE player = "Steve Stricker" |
Luxembourg received how many gold medals? | CREATE TABLE table_55398 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Gold") FROM table_55398 WHERE "Nation" = 'luxembourg' |
how many seasons at the stadio ennio tardini had 11,000 or more season tickets ? | CREATE TABLE table_204_237 (
id number,
"season" text,
"average" number,
"high" number,
"low" number,
"season tickets" number
) | SELECT COUNT("season") FROM table_204_237 WHERE "season tickets" >= 11000 |
Name the total number of production code by david richardson and todd holland | CREATE TABLE table_22589 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT COUNT("Production code") FROM table_22589 WHERE "Written by" = 'David Richardson' AND "Directed by" = 'Todd Holland' |
Who was the away team on 30 January 1988, when the home team was Everton? | CREATE TABLE table_58810 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_58810 WHERE "Home team" = 'everton' AND "Date" = '30 january 1988' |
When was moray firth built? | CREATE TABLE table_67054 (
"BR No." real,
"Name" text,
"Builder" text,
"Whenbuilt" text,
"Withdrawn" text
) | SELECT "Whenbuilt" FROM table_67054 WHERE "Name" = 'moray firth' |
How much Gain has a Long of 29, and an Avg/G smaller than 33.7? | CREATE TABLE table_name_77 (
gain VARCHAR,
long VARCHAR,
avg_g VARCHAR
) | SELECT COUNT(gain) FROM table_name_77 WHERE long = 29 AND avg_g < 33.7 |
What is the time of Troy Bayliss with less than 8 grids? | CREATE TABLE table_78578 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Time" FROM table_78578 WHERE "Grid" < '8' AND "Rider" = 'troy bayliss' |
How many silver when bronze is 25 and overall is less than 67? | CREATE TABLE table_8241 (
"Team" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Overall" real
) | SELECT SUM("Silver") FROM table_8241 WHERE "Bronze" = '25' AND "Overall" < '67' |
What was the resolution for the match that ended by Submission (armbar)? | CREATE TABLE table_39988 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Res." FROM table_39988 WHERE "Method" = 'submission (armbar)' |
What is the average crowd size of the away team who scored 9.6 (60)? | CREATE TABLE table_78030 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_78030 WHERE "Away team score" = '9.6 (60)' |
How many years was the 2nd place team merchants, tampico, il? | CREATE TABLE table_22512 (
"Year" real,
"1st Place Team" text,
"2nd Place Team" text,
"3rd Place Team" text,
"4th Place Team" text,
"Host Location" text
) | SELECT COUNT("Year") FROM table_22512 WHERE "2nd Place Team" = 'Merchants, Tampico, IL' |
What is the total number of churches built in 1916? | CREATE TABLE table_1772 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT COUNT("Location of the Church") FROM table_1772 WHERE "Year Built" = '1916' |
What is the first year of the European Championships competition? | CREATE TABLE table_68767 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT MIN("Year") FROM table_68767 WHERE "Competition" = 'european championships' |
In the election earlier than 2012 how many Inhabitants had a Party of five star movement? | CREATE TABLE table_name_57 (
inhabitants INTEGER,
party VARCHAR,
election VARCHAR
) | SELECT SUM(inhabitants) FROM table_name_57 WHERE party = "five star movement" AND election < 2012 |
On what date was the handicap 8 st 12 lb? | CREATE TABLE table_2896329_1 (
date VARCHAR,
handicap VARCHAR
) | SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb" |
Who was the away team against Newton Heath? | CREATE TABLE table_59909 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_59909 WHERE "Home team" = 'newton heath' |
What is the status of vessel number K-223? | CREATE TABLE table_1634376_1 (
status VARCHAR,
_number VARCHAR
) | SELECT status FROM table_1634376_1 WHERE _number = "K-223" |
What is the highest population within the municipality of Porsgrunn? | CREATE TABLE table_42260 (
"City" text,
"Municipality" text,
"County" text,
"Town status" text,
"Population" real
) | SELECT MAX("Population") FROM table_42260 WHERE "Municipality" = 'porsgrunn' |
Which Game is the highest one that has High rebounds of pau gasol (11)? | CREATE TABLE table_name_12 (
game INTEGER,
high_rebounds VARCHAR
) | SELECT MAX(game) FROM table_name_12 WHERE high_rebounds = "pau gasol (11)" |
What is other when registered voters is 50.7%? | CREATE TABLE table_27003186_3 (
other VARCHAR,
registered_voters VARCHAR
) | SELECT other FROM table_27003186_3 WHERE registered_voters = "50.7%" |
What percentage of the votes in Tippah did Obama get? | CREATE TABLE table_23939 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | SELECT "Obama%" FROM table_23939 WHERE "County" = 'Tippah' |
Which venue did Luke Blackwell serve as captain? | CREATE TABLE table_18796 (
"Season" real,
"Premiers" text,
"Runners Up" text,
"Score" text,
"Captain" text,
"Coach" text,
"Simpson Medal" text,
"Venue" text,
"Attendance" real,
"Umpires" text
) | SELECT "Venue" FROM table_18796 WHERE "Captain" = 'Luke Blackwell' |
Who was the director of the film that Sister Films received an award for on 2/3/05? | CREATE TABLE table_67768 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
) | SELECT "Director(s)" FROM table_67768 WHERE "Date" = '2/3/05' AND "Recipient" = 'sister films' |
Name the sum of drawn for 30 october 2006 and win % more than 43.2 | CREATE TABLE table_54845 (
"Team" text,
"Nation" text,
"From" text,
"Matches" real,
"Drawn" real,
"Lost" real,
"Win %" real
) | SELECT SUM("Drawn") FROM table_54845 WHERE "From" = '30 october 2006' AND "Win %" > '43.2' |
where was the last race listing frank kimmel held ? | CREATE TABLE table_204_630 (
id number,
"no" number,
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
) | SELECT "track" FROM table_204_630 WHERE "winner" = 'frank kimmel' ORDER BY "date" DESC LIMIT 1 |
Who took the loss on May 25? | CREATE TABLE table_71210 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Loss" FROM table_71210 WHERE "Date" = 'may 25' |
which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ? | CREATE TABLE table_38605 (
"Team" text,
"Recopa 1995" text,
"Supercopa 1995" text,
"CONMEBOL 1995" text,
"Copa Libertadores 1996" text
) | SELECT "Copa Libertadores 1996" FROM table_38605 WHERE "Supercopa 1995" = 'round 1' AND "Team" = 'argentinos juniors' |
What is the day and date of game 2? | CREATE TABLE table_50616 (
"Game" text,
"Day, Date" text,
"Anand" text,
"Gelfand" text,
"Standing" text
) | SELECT "Day, Date" FROM table_50616 WHERE "Game" = '2' |
How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get? | CREATE TABLE table_47046 (
"Squad No." real,
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"FLT Apps" text,
"FLT Goals" real,
"Playoff Apps" text,
"Playoff Goals" real,
"Total Apps" text,
"Total Goals" real
) | SELECT SUM("Total Goals") FROM table_47046 WHERE "Playoff Apps" = '2' AND "FA Cup Apps" = '2' AND "League Cup Goals" < '0' |
Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph? | CREATE TABLE table_29218221_2 (
rider VARCHAR,
fri_3_june VARCHAR
) | SELECT rider FROM table_29218221_2 WHERE fri_3_june = "18' 19.68 123.516mph" |
Which developer has a year of cancelled releases? | CREATE TABLE table_name_96 (
developer VARCHAR,
year_of_release VARCHAR
) | SELECT developer FROM table_name_96 WHERE year_of_release = "cancelled" |
Find the names of procedures which physician John Wen was trained in. | CREATE TABLE trained_in (
physician VARCHAR,
treatment VARCHAR
)
CREATE TABLE physician (
employeeid VARCHAR,
name VARCHAR
)
CREATE TABLE procedures (
name VARCHAR,
code VARCHAR
) | SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" |
On what date was god & guns released? | CREATE TABLE table_name_15 (
date_of_release VARCHAR,
title VARCHAR
) | SELECT date_of_release FROM table_name_15 WHERE title = "god & guns" |
how many partial failures of h ii flights were there ? | CREATE TABLE table_203_538 (
id number,
"flight" text,
"date" text,
"payload nickname" text,
"payload" text,
"orbit" text,
"result" text
) | SELECT COUNT(*) FROM table_203_538 WHERE "result" = 'partial failure' |
Which Played number had a goal difference of more than 0 when the club was Valencia CF? | CREATE TABLE table_name_29 (
played VARCHAR,
goal_difference VARCHAR,
club VARCHAR
) | SELECT COUNT(played) FROM table_name_29 WHERE goal_difference > 0 AND club = "valencia cf" |
what is the frequency of part number tmn550dcr23gm? | CREATE TABLE table_10885 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"FPU width" text,
"Multiplier 1" text,
"Socket" text,
"Release date" text,
"Order part number" text
) | SELECT "Frequency" FROM table_10885 WHERE "Order part number" = 'tmn550dcr23gm' |
how many teams finished better than spain in cycling at the 1996 summer olympics men 's team pursuit ? | CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) | SELECT COUNT("team") FROM table_204_735 WHERE "rank" < (SELECT "rank" FROM table_204_735 WHERE "team" = 'spain') |
What are the title and director of the films without any schedule? | CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
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
)
CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
) | SELECT title, directed_by FROM film WHERE NOT film_id IN (SELECT film_id FROM schedule) |
Which 2010 stat featured the tournament of the Olympic Games? | CREATE TABLE table_name_2 (
tournament VARCHAR
) | SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games" |
What is the match total for a score over 299 and under 412 innings? | CREATE TABLE table_71853 (
"Matches" real,
"Innings" real,
"Not Out" real,
"High Score" text,
"Runs" real,
"Average" real
) | SELECT SUM("Matches") FROM table_71853 WHERE "High Score" = '299' AND "Innings" < '412' |
Which tournament has a 2007 of 2r, and a 2011 of 2r? | CREATE TABLE table_69607 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_69607 WHERE "2007" = '2r' AND "2011" = '2r' |
What is 1 vs 2 when total is more than 28 and 2 vs 3 is 8? | CREATE TABLE table_12199 (
"Preferences" text,
"1. vs 2." real,
"1. vs 3." real,
"2. vs 3." real,
"Total" real
) | SELECT "1. vs 2." FROM table_12199 WHERE "Total" > '28' AND "2. vs 3." = '8' |
Find number of products which Sony does not make. | CREATE TABLE manufacturers (
code VARCHAR,
name VARCHAR
)
CREATE TABLE products (
name VARCHAR
) | SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') |
What player has a no pick position in 1976? | CREATE TABLE table_name_33 (
player VARCHAR,
position VARCHAR,
year VARCHAR
) | SELECT player FROM table_name_33 WHERE position = "no pick" AND year = 1976 |
where is jamerican cuisine in san francisco ? | 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 location, restaurant WHERE location.city_name = 'san francisco' AND restaurant.id = location.restaurant_id AND restaurant.name = 'jamerican cuisine' |
How many vacators were in the Pennsylvania 33rd district? | CREATE TABLE table_73389 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT COUNT("Vacator") FROM table_73389 WHERE "District" = 'Pennsylvania 33rd' |
What is the highest Lane, when Mark is 46.65, and when React is greater than 0.251? | CREATE TABLE table_name_44 (
lane INTEGER,
mark VARCHAR,
react VARCHAR
) | SELECT MAX(lane) FROM table_name_44 WHERE mark = "46.65" AND react > 0.251 |
acute myocardial infarction or pulmonary embolization | CREATE TABLE table_train_41 (
"id" int,
"pulmonary_embolization" bool,
"hiv_infection" bool,
"neutrophil_count" int,
"renal_disease" bool,
"liver_disease" bool,
"serum_creatinine" float,
"myocardial_infarction" bool,
"NOUSE" float
) | SELECT * FROM table_train_41 WHERE myocardial_infarction = 1 OR pulmonary_embolization = 1 |
Who was the train operator when the train departed at 11.02 in 1922? | CREATE TABLE table_22288 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
) | SELECT "Operator" FROM table_22288 WHERE "Departure" = '11.02' |
Who directed the episode that was viewed by 2.57 million people in the U.S.? | CREATE TABLE table_11820086_1 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = "2.57" |
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1? | CREATE TABLE table_37069 (
"Season" real,
"Team" text,
"Games" real,
"Wins" real,
"Losses" real,
"Ties" real
) | SELECT SUM("Season") FROM table_37069 WHERE "Ties" < '1' AND "Team" = 'vancouver grizzlies' AND "Wins" < '1' |
Which Venue has a Club of west bromwich albion? | CREATE TABLE table_name_99 (
venue VARCHAR,
club VARCHAR
) | SELECT venue FROM table_name_99 WHERE club = "west bromwich albion" |
Give me the comparison about meter_100 over the meter_600 , display X in descending order. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_600 DESC |
How many years were the events won by KCLMS less than 7? | CREATE TABLE table_name_8 (
year VARCHAR,
events_won_by_kclMS INTEGER
) | SELECT COUNT(year) FROM table_name_8 WHERE events_won_by_kclMS < 7 |
what's the team with stadium being borough briggs | CREATE TABLE table_19059 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT "Team" FROM table_19059 WHERE "Stadium" = 'Borough Briggs' |
What's Kaia Kanepi's Sd? | CREATE TABLE table_3814 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
) | SELECT MIN("Sd") FROM table_3814 WHERE "Player" = 'Kaia Kanepi' |
What is the total number of Total, when Club is Leeds United, and when League Goals is 13? | CREATE TABLE table_76537 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" text,
"League Cup goals" real,
"Texaco Cup goals" text,
"Euro competitions" text,
"Total" real
) | SELECT COUNT("Total") FROM table_76537 WHERE "Club" = 'leeds united' AND "League goals" = '13' |
Which Total has a Score of 1 3, and a Set 1 of 29 31? | CREATE TABLE table_37959 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Total" FROM table_37959 WHERE "Score" = '1–3' AND "Set 1" = '29–31' |
What is Score, when Place is 'T9', and when Player is 'Jeff Sluman'? | CREATE TABLE table_name_39 (
score VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_39 WHERE place = "t9" AND player = "jeff sluman" |
Which race did Alberto Ascari have both the Pole position and the win, but Luigi Villoresi set the fastest lap time? | CREATE TABLE table_51654 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Race" FROM table_51654 WHERE "Pole position" = 'alberto ascari' AND "Winning driver" = 'alberto ascari' AND "Fastest lap" = 'luigi villoresi' |
what was the first film zhao dan starred in ? | CREATE TABLE table_204_707 (
id number,
"year" number,
"english title" text,
"chinese title" text,
"director" text,
"role" text
) | SELECT "english title" FROM table_204_707 ORDER BY "year" LIMIT 1 |
Name the minimum enrollment for montana tech of the university of montana | CREATE TABLE table_15851155_1 (
enrollment INTEGER,
school VARCHAR
) | SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana" |
What team was the opponent when the score was 25-0? | CREATE TABLE table_14423 (
"Date" text,
"Opponent" text,
"City" text,
"Result" text,
"Score" text
) | SELECT "Opponent" FROM table_14423 WHERE "Score" = '25-0' |
which competition did this competitor compete in next after the world indoor championships in 2008 ? | CREATE TABLE table_204_622 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT "competition" FROM table_204_622 WHERE id = (SELECT id FROM table_204_622 WHERE "competition" = 'world indoor championships' AND "year" = 2008) + 1 |
Which club had 2 wins and 1 draw? | CREATE TABLE table_22020 (
"Club" text,
"Played" text,
"Won" 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 "Club" FROM table_22020 WHERE "Drawn" = '1' AND "Won" = '2' |
If the record is 5-8, what is the team name? | CREATE TABLE table_73512 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_73512 WHERE "Record" = '5-8' |
What is the place of the song 'Never Change'? | CREATE TABLE table_40447 (
"Draw" real,
"Artist" text,
"Song" text,
"Result" text,
"Place" real
) | SELECT SUM("Place") FROM table_40447 WHERE "Song" = 'never change' |
Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21 16 9? | CREATE TABLE table_64403 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) | SELECT "Date" FROM table_64403 WHERE "Attendance" > '16,186' AND "Points" < '52' AND "Record" = '21–16–9' |
What are the names of the technicians and how many machines are they assigned to repair. | CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE repair_assignment (
technician_id int,
repair_ID int,
Machine_ID int
)
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE technician (
technician_id real,
Name text,
Team text,
Starting_Year real,
Age int
) | SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name |
In what Round was George Thomas Picked? | CREATE TABLE table_74978 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT AVG("Round") FROM table_74978 WHERE "Name" = 'george thomas' |
what's the result with dbeingtrict being florida 4 | CREATE TABLE table_18499 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18499 WHERE "District" = 'Florida 4' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.