instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
When was the film directed by Pen-Ek Ratanaruang released?
|
CREATE TABLE table_name_13 (
date VARCHAR,
director VARCHAR
)
|
SELECT date FROM table_name_13 WHERE director = "pen-ek ratanaruang"
|
how many top 3 finishes does gordeeva have ?
|
CREATE TABLE table_204_492 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
|
SELECT COUNT(*) FROM table_204_492 WHERE "position" <= 3
|
What time did team kawasaki zx10 1000cc have?
|
CREATE TABLE table_name_61 (
time VARCHAR,
team VARCHAR
)
|
SELECT time FROM table_name_61 WHERE team = "kawasaki zx10 1000cc"
|
What is Series, when Season is 2007?
|
CREATE TABLE table_name_2 (
series VARCHAR,
season VARCHAR
)
|
SELECT series FROM table_name_2 WHERE season = 2007
|
Which School/Club Team has a Player of michael bradley?
|
CREATE TABLE table_name_36 (
school_club_team VARCHAR,
player VARCHAR
)
|
SELECT school_club_team FROM table_name_36 WHERE player = "michael bradley"
|
What is the constructor of the driver Heinz-Harald Frentzen?
|
CREATE TABLE table_name_50 (
constructor VARCHAR,
driver VARCHAR
)
|
SELECT constructor FROM table_name_50 WHERE driver = "heinz-harald frentzen"
|
What lost has 86 points?
|
CREATE TABLE table_name_67 (
lost VARCHAR,
points VARCHAR
)
|
SELECT lost FROM table_name_67 WHERE points = "86"
|
is the total score for december 26 the same score as january 2 ?
|
CREATE TABLE table_203_517 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
)
|
SELECT (SELECT "score" FROM table_203_517 WHERE "date" = 'december 26') = (SELECT "score" FROM table_203_517 WHERE "date" = 'january 2')
|
what was the greatest number of gold medals won by a single athlete ?
|
CREATE TABLE table_203_104 (
id number,
"athlete" text,
"nation" text,
"olympics" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
|
SELECT MAX("gold") FROM table_203_104
|
Which height is associated with Franklin High School?
|
CREATE TABLE table_77980 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
|
SELECT "Height" FROM table_77980 WHERE "School" = 'franklin high school'
|
Name the position of glenn goldup
|
CREATE TABLE table_2088 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
|
SELECT "Position" FROM table_2088 WHERE "Player" = 'Glenn Goldup'
|
What is the average year with a 1:42.85 time?
|
CREATE TABLE table_name_81 (
year INTEGER,
time VARCHAR
)
|
SELECT AVG(year) FROM table_name_81 WHERE time = "1:42.85"
|
How many production codes have an original airdate of November 16, 1990?
|
CREATE TABLE table_2409041_3 (
production_code VARCHAR,
original_air_date VARCHAR
)
|
SELECT COUNT(production_code) FROM table_2409041_3 WHERE original_air_date = "November 16, 1990"
|
Name the highest year with rank of 22 and accolade of singles of 1999
|
CREATE TABLE table_name_89 (
year INTEGER,
accolade VARCHAR,
rank VARCHAR
)
|
SELECT MAX(year) FROM table_name_89 WHERE accolade = "singles of 1999" AND rank = "22"
|
what was the drawn when the tries for was 46?
|
CREATE TABLE table_17806 (
"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 "Drawn" FROM table_17806 WHERE "Tries for" = '46'
|
What is the party affiliation of Virginia Foxx?
|
CREATE TABLE table_62133 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
|
SELECT "Party" FROM table_62133 WHERE "Incumbent" = 'virginia foxx'
|
Which nominees won before year 2005?
|
CREATE TABLE table_name_69 (
nominee_s_ VARCHAR,
year VARCHAR,
result VARCHAR
)
|
SELECT nominee_s_ FROM table_name_69 WHERE year < 2005 AND result = "won"
|
who is the champion where semi-finalist #2 is na and location is morrisville, nc
|
CREATE TABLE table_16524 (
"Year" text,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
)
|
SELECT "Champion" FROM table_16524 WHERE "Semi-Finalist #2" = 'NA' AND "Location" = 'Morrisville, NC'
|
Which Village has a Region of C te De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latrici res-Chambertin?
|
CREATE TABLE table_34297 (
"Grand Cru" text,
"Region" text,
"Village" text,
"Wine style" text,
"Vineyard surface (2010)" text
)
|
SELECT "Village" FROM table_34297 WHERE "Region" = 'côte de nuits' AND "Wine style" = 'red wine' AND "Grand Cru" = 'latricières-chambertin'
|
What is the lowest value in April with New York Rangers as opponent for a game less than 82?
|
CREATE TABLE table_34390 (
"Game" real,
"April" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
|
SELECT MIN("April") FROM table_34390 WHERE "Opponent" = 'new york rangers' AND "Game" < '82'
|
Create a bar chart showing maximal revenue across headquarter, and sort by the y-axis in asc.
|
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 Headquarter, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY MAX(Revenue)
|
What cart has a serpent shield animal?
|
CREATE TABLE table_60415 (
"Knight" text,
"Weapon/item" text,
"External weapon" text,
"Shield animal" text,
"Cart" text
)
|
SELECT "Cart" FROM table_60415 WHERE "Shield animal" = 'serpent'
|
Who was the outgoing manager who departed due to fc energie cottbus purchased rights?
|
CREATE TABLE table_47901 (
"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 "Outgoing manager" FROM table_47901 WHERE "Manner of departure" = 'fc energie cottbus purchased rights'
|
What was 2011, when 2005 was 2R, and when 2003 was 2R?
|
CREATE TABLE table_42284 (
"Tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
|
SELECT "2011" FROM table_42284 WHERE "2005" = '2r' AND "2003" = '2r'
|
what is the person there the numbers is 2343
|
CREATE TABLE table_30552 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
)
|
SELECT "Player" FROM table_30552 WHERE "Points" = '2343'
|
Show the names of climbers and the heights of mountains they climb Show bar chart, and display in desc by the bars please.
|
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
|
SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Name DESC
|
Show the position of players and the corresponding number of players.
|
CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
draft_pick_number number,
draft_class text,
college text
)
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
|
SELECT position, COUNT(*) FROM match_season GROUP BY position
|
who had high points on march 14?
|
CREATE TABLE table_27700375_10 (
high_points VARCHAR,
date VARCHAR
)
|
SELECT high_points FROM table_27700375_10 WHERE date = "March 14"
|
What is the whole of Drawn that has a Played larger than 14?
|
CREATE TABLE table_8228 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
|
SELECT SUM("Drawn") FROM table_8228 WHERE "Played" > '14'
|
What was the average crowd at Western Oval?
|
CREATE TABLE table_74724 (
"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_74724 WHERE "Venue" = 'western oval'
|
Tell me the runner-up for majorca
|
CREATE TABLE table_name_30 (
runner_up VARCHAR,
tournament VARCHAR
)
|
SELECT runner_up FROM table_name_30 WHERE tournament = "majorca"
|
What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
|
CREATE TABLE table_29141354_4 (
first_broadcast VARCHAR,
jamie_and_johns_guest VARCHAR
)
|
SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Andy Murray"
|
Name the To par of payne stewart?
|
CREATE TABLE table_name_4 (
to_par VARCHAR,
player VARCHAR
)
|
SELECT to_par FROM table_name_4 WHERE player = "payne stewart"
|
What Datacenter is listed against the network access connections: rras Feature?
|
CREATE TABLE table_name_85 (
datacenter VARCHAR,
features VARCHAR
)
|
SELECT datacenter FROM table_name_85 WHERE features = "network access connections: rras"
|
What Tournament's Score was 6 2, 4 6, 6 4?
|
CREATE TABLE table_47432 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
|
SELECT "Tournament" FROM table_47432 WHERE "Score" = '6–2, 4–6, 6–4'
|
How many POS when the average is 1.8529?
|
CREATE TABLE table_25887826_17 (
pos INTEGER,
avg VARCHAR
)
|
SELECT MAX(pos) FROM table_25887826_17 WHERE avg = "1.8529"
|
Plot how many name by grouped by name as a bar graph, and sort by the total number in descending.
|
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval 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 route (
train_id int,
station_id int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
|
SELECT name, COUNT(name) FROM train GROUP BY name ORDER BY COUNT(name) DESC
|
What game in the season does this list start?
|
CREATE TABLE table_29785 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT MIN("Game") FROM table_29785
|
What is total amount of points for the 2007 season?
|
CREATE TABLE table_36661 (
"Season" real,
"Driver" text,
"Team" text,
"Tyre" text,
"Points" real
)
|
SELECT SUM("Points") FROM table_36661 WHERE "Season" = '2007'
|
Who directed the film that Avie Luthra received an award for?
|
CREATE TABLE table_name_63 (
director_s_ VARCHAR,
recipient VARCHAR
)
|
SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"
|
did ito take 1st in the 10,000 m before or after he took 28th in the 10,000 m ?
|
CREATE TABLE table_203_215 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
|
SELECT (SELECT "year" FROM table_203_215 WHERE "position" = 1 AND "event" = '10,000m') < (SELECT "year" FROM table_203_215 WHERE "position" = 28 AND "event" = '10,000m')
|
Name the verb meaning for half drosch
|
CREATE TABLE table_1745843_9 (
verb_meaning VARCHAR,
part_2 VARCHAR
)
|
SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = "half drosch"
|
Find the name of the ship that is steered by the youngest captain.
|
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
|
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1
|
Which Royal house has a name of ding?
|
CREATE TABLE table_name_30 (
royal_house VARCHAR,
name VARCHAR
)
|
SELECT royal_house FROM table_name_30 WHERE name = "ding"
|
If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location?
|
CREATE TABLE table_22670216_1 (
location VARCHAR,
winning_driver VARCHAR,
track VARCHAR
)
|
SELECT location FROM table_22670216_1 WHERE winning_driver = "Wally Dallenbach" AND track = "Wisconsin State Fair Park Speedway"
|
Which Elevator has a Title of bishop of palestrina?
|
CREATE TABLE table_12911 (
"Elector" text,
"Nationality" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
|
SELECT "Elevator" FROM table_12911 WHERE "Title" = 'bishop of palestrina'
|
What was the Position of the Player, Britton Johnsen?
|
CREATE TABLE table_name_79 (
position VARCHAR,
player VARCHAR
)
|
SELECT position FROM table_name_79 WHERE player = "britton johnsen"
|
A round of 4 is in what position?
|
CREATE TABLE table_name_38 (
position VARCHAR,
round VARCHAR
)
|
SELECT position FROM table_name_38 WHERE round = 4
|
Who was the team guest captain for episode 2?
|
CREATE TABLE table_25816476_2 (
team_guest_captain VARCHAR,
episode VARCHAR
)
|
SELECT team_guest_captain FROM table_25816476_2 WHERE episode = 2
|
name a horse that placed after hello and was owned by more than one person .
|
CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
|
SELECT "horse" FROM table_204_13 WHERE "finished" > (SELECT "finished" FROM table_204_13 WHERE "horse" = 'hello') AND "owner" > 1 ORDER BY "finished" LIMIT 1
|
What is the Year of the Film Klondike Annie?
|
CREATE TABLE table_76915 (
"Year" real,
"Film" text,
"Role" text,
"Director" text,
"Studio" text
)
|
SELECT SUM("Year") FROM table_76915 WHERE "Film" = 'klondike annie'
|
What is the average number of rounds when fighting against Clay Guida?
|
CREATE TABLE table_name_54 (
round INTEGER,
opponent VARCHAR
)
|
SELECT AVG(round) FROM table_name_54 WHERE opponent = "clay guida"
|
How many Losses have Draws larger than 0?
|
CREATE TABLE table_66431 (
"Millewa" text,
"Wins" real,
"Forfeits" real,
"Losses" real,
"Draws" real,
"Against" real
)
|
SELECT MAX("Losses") FROM table_66431 WHERE "Draws" > '0'
|
Which sign had a yellow background and a triangular shape?
|
CREATE TABLE table_57201 (
"Type of sign" text,
"Shape" text,
"Border" text,
"Background colour" text,
"Text/Symbol" text
)
|
SELECT "Border" FROM table_57201 WHERE "Background colour" = 'yellow' AND "Shape" = 'triangular'
|
Show gas station id, location, and manager_name for all gas stations ordered by open year.
|
CREATE TABLE gas_station (
station_id VARCHAR,
LOCATION VARCHAR,
manager_name VARCHAR,
open_year VARCHAR
)
|
SELECT station_id, LOCATION, manager_name FROM gas_station ORDER BY open_year
|
How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?
|
CREATE TABLE table_name_6 (
bronze VARCHAR,
nation VARCHAR,
total VARCHAR
)
|
SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7
|
What was the score of the game where stafford rangers was the away team?
|
CREATE TABLE table_66641 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
|
SELECT "Score" FROM table_66641 WHERE "Away team" = 'stafford rangers'
|
Report the number of students in each classroom.
|
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
|
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
|
What is the nomination title used for the original film, Monsieur Hawarden?
|
CREATE TABLE table_name_18 (
film_title_used_in_nomination VARCHAR,
original_title VARCHAR
)
|
SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden"
|
What is the total number of tiers for the postseason of semifinalist?
|
CREATE TABLE table_5228 (
"Season" text,
"Tier" real,
"League" text,
"Pos." real,
"Postseason" text,
"European competitions" text
)
|
SELECT SUM("Tier") FROM table_5228 WHERE "Postseason" = 'semifinalist'
|
what note is before former md 453 ?
|
CREATE TABLE table_204_888 (
id number,
"location" text,
"mile" number,
"destinations" text,
"notes" text
)
|
SELECT "notes" FROM table_204_888 WHERE id = (SELECT id FROM table_204_888 WHERE "notes" = 'former md 453') - 1
|
What are the tries against when points against 287?
|
CREATE TABLE table_812 (
"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 "Tries against" FROM table_812 WHERE "Points against" = '287'
|
Which Group position has Result F A of 0 1 on 1 november 2006?
|
CREATE TABLE table_name_50 (
group_position VARCHAR,
result_f_a VARCHAR,
date VARCHAR
)
|
SELECT group_position FROM table_name_50 WHERE result_f_a = "0–1" AND date = "1 november 2006"
|
What is the smallest total that has 11 golds and bronzes over 2?
|
CREATE TABLE table_name_42 (
total INTEGER,
gold VARCHAR,
bronze VARCHAR
)
|
SELECT MIN(total) FROM table_name_42 WHERE gold = 11 AND bronze > 2
|
List the scores of all games when Miami were listed as the first Semi finalist
|
CREATE TABLE table_72167 (
"Year" real,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
)
|
SELECT "Score" FROM table_72167 WHERE "Semi-Finalist #1" = 'Miami'
|
Which episode had 2.75 million viewers in the U.S.?
|
CREATE TABLE table_25740548_4 (
title VARCHAR,
us_viewers__million_ VARCHAR
)
|
SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75"
|
What player was drafted 252?
|
CREATE TABLE table_name_52 (
player VARCHAR,
pick VARCHAR
)
|
SELECT player FROM table_name_52 WHERE pick = 252
|
What is the official name and status of the city with the most residents?
|
CREATE TABLE farm_competition (
competition_id number,
year number,
theme text,
host_city_id number,
hosts text
)
CREATE TABLE competition_record (
competition_id number,
farm_id number,
rank number
)
CREATE TABLE city (
city_id number,
official_name text,
status text,
area_km_2 number,
population number,
census_ranking text
)
CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
)
|
SELECT official_name, status FROM city ORDER BY population DESC LIMIT 1
|
When did the Prime Minister of Italy take office?
|
CREATE TABLE table_72079 (
"Entered office as Head of State or Government" text,
"Began time as senior G8 leader" text,
"Ended time as senior G8 leader" text,
"Person" text,
"Office" text
)
|
SELECT "Entered office as Head of State or Government" FROM table_72079 WHERE "Office" = 'Prime Minister of Italy'
|
in the 2007 phillip island superbike world championship round superbike race 1 classification what was the point difference between position 1 and 2 ?
|
CREATE TABLE table_203_142 (
id number,
"pos" text,
"no" number,
"rider" text,
"bike" text,
"laps" number,
"time" text,
"grid" number,
"points" number
)
|
SELECT (SELECT "points" FROM table_203_142 WHERE "pos" = 1) - (SELECT "points" FROM table_203_142 WHERE "pos" = 2)
|
For each state, when was the last time the average score data was collected?
|
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
)
CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
|
SELECT state, MAX(year) FROM ndecoreexcel_math_grade8 GROUP BY state
|
Which motor's class was bs 1910?
|
CREATE TABLE table_41253 (
"Class" text,
"Quantity" real,
"Manufacturer" text,
"Motor" text,
"Seats" real
)
|
SELECT "Motor" FROM table_41253 WHERE "Class" = 'bs 1910'
|
How many holes does Player Vijay Singh have?
|
CREATE TABLE table_7279 (
"Place" text,
"Player" text,
"Country" text,
"To par" text,
"Hole" real
)
|
SELECT COUNT("Hole") FROM table_7279 WHERE "Player" = 'vijay singh'
|
Which surface has an Opponent of fernando verdasco?
|
CREATE TABLE table_55036 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
)
|
SELECT "Surface" FROM table_55036 WHERE "Opponent" = 'fernando verdasco'
|
Give me the comparison about meter_100 over the meter_300 , and could you order by the bar from high to low?
|
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
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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
)
|
SELECT meter_300, meter_100 FROM swimmer ORDER BY meter_300 DESC
|
What was the score of the game on June 1?
|
CREATE TABLE table_71571 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
|
SELECT "Score" FROM table_71571 WHERE "Date" = 'june 1'
|
what is the frequency when the format is contemporary christian music?
|
CREATE TABLE table_name_68 (
frequency VARCHAR,
format VARCHAR
)
|
SELECT frequency FROM table_name_68 WHERE format = "contemporary christian music"
|
What is the Irish name for the 1 fraction of 1/240?
|
CREATE TABLE table_1682865_1 (
irish_name VARCHAR,
£1_fraction VARCHAR
)
|
SELECT irish_name FROM table_1682865_1 WHERE £1_fraction = "1/240"
|
What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?
|
CREATE TABLE table_name_35 (
call_sign VARCHAR,
frequency_mhz VARCHAR,
erp_w VARCHAR
)
|
SELECT call_sign FROM table_name_35 WHERE frequency_mhz < 94.9 AND erp_w = 170
|
how many competitions did jifar participate in before joining the 10000m ?
|
CREATE TABLE table_203_189 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
|
SELECT COUNT("competition") FROM table_203_189 WHERE "notes" <> 10000
|
What are the Points when the Place is 9?
|
CREATE TABLE table_34649 (
"Draw" real,
"Singer" text,
"Song" text,
"Points" real,
"Place" real
)
|
SELECT "Points" FROM table_34649 WHERE "Place" = '9'
|
What place had 14:11.15 as the performance?
|
CREATE TABLE table_66264 (
"Event" text,
"Performance" text,
"Athlete" text,
"Nation" text,
"Place" text,
"Date" text
)
|
SELECT "Place" FROM table_66264 WHERE "Performance" = '14:11.15'
|
What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?
|
CREATE TABLE table_17593 (
"Season" text,
"Serbian League Belgrade" text,
"Serbian League East" text,
"Serbian League Vojvodina" text,
"Serbian League West" text
)
|
SELECT "Serbian League East" FROM table_17593 WHERE "Serbian League Belgrade" = 'Kolubara'
|
which was the last canal opened in scotland ?
|
CREATE TABLE table_203_594 (
id number,
"canal" text,
"length (miles)" number,
"locks" number,
"max length (ft)" number,
"width (ft)" number,
"year opened" number,
"year abandoned" number,
"year restored" number
)
|
SELECT "canal" FROM table_203_594 WHERE "year opened" = (SELECT MAX("year opened") FROM table_203_594)
|
what is the highest attendance for a total attendance-regular season record
|
CREATE TABLE table_24355 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
|
SELECT MAX("Attendance") FROM table_24355 WHERE "Type of Record" = 'Total Attendance-Regular season'
|
What is the name of the Opponent when there is a Record of 39-19?
|
CREATE TABLE table_41741 (
"Date" text,
"Opponent" text,
"Location" text,
"Score" text,
"Loss" text,
"Record" text
)
|
SELECT "Opponent" FROM table_41741 WHERE "Record" = '39-19'
|
Which format is in St. George with a frequency of 0 107.3 fm?
|
CREATE TABLE table_5783 (
"Call sign" text,
"Frequency" text,
"City of License" text,
"Owner" text,
"Format" text
)
|
SELECT "Format" FROM table_5783 WHERE "City of License" = 'st. george' AND "Frequency" = '0 107.3 fm'
|
what is the overall number of times when the calendar showed october 6
|
CREATE TABLE table_29866 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT COUNT("Record") FROM table_29866 WHERE "Date" = 'October 6'
|
What date has yani tseng as the runner (s)-up?
|
CREATE TABLE table_name_91 (
date VARCHAR,
runner_s__up VARCHAR
)
|
SELECT date FROM table_name_91 WHERE runner_s__up = "yani tseng"
|
Who recorded the loss on august 7?
|
CREATE TABLE table_name_98 (
loss VARCHAR,
date VARCHAR
)
|
SELECT loss FROM table_name_98 WHERE date = "august 7"
|
What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
|
CREATE TABLE member (
member_id number,
card_number text,
name text,
hometown text,
level number
)
CREATE TABLE branch (
branch_id number,
name text,
open_year text,
address_road text,
city text,
membership_amount text
)
CREATE TABLE membership_register_branch (
member_id number,
branch_id text,
register_year text
)
CREATE TABLE purchase (
member_id number,
branch_id text,
year text,
total_pounds number
)
|
SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
|
Feature of gear stick involves which driving force gt?
|
CREATE TABLE table_6409 (
"Feature" text,
"GT Force" text,
"Driving Force EX" text,
"Driving Force Pro" text,
"Driving Force GT" text,
"G25 Racing Wheel" text,
"G27 Racing Wheel" text
)
|
SELECT "Driving Force GT" FROM table_6409 WHERE "Feature" = 'gear stick'
|
How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?
|
CREATE TABLE table_name_78 (
allsvenskan_titles INTEGER,
introduced VARCHAR,
stars_symbolizes VARCHAR,
club VARCHAR
)
|
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000
|
Which department has the lowest budget?
|
CREATE TABLE department (
dept_name VARCHAR,
budget VARCHAR
)
|
SELECT dept_name FROM department ORDER BY budget LIMIT 1
|
Which constructor has a Time/Retired of +37.311?
|
CREATE TABLE table_56316 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT "Constructor" FROM table_56316 WHERE "Time/Retired" = '+37.311'
|
who would the next opponent be after week 4 ?
|
CREATE TABLE table_203_691 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
|
SELECT "opponent" FROM table_203_691 WHERE "week" = 4 + 1
|
Name the airport with IATA of dmk
|
CREATE TABLE table_68852 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
|
SELECT "Airport" FROM table_68852 WHERE "IATA" = 'dmk'
|
What country offered a prize of 66400 US dollars?
|
CREATE TABLE table_31084 (
"Rk" real,
"Name" text,
"Country" text,
"Matches Played" real,
"Matches Won" real,
"Points" real,
"Prize Money (USD)" real
)
|
SELECT "Country" FROM table_31084 WHERE "Prize Money (USD)" = '66400'
|
Which entrant has a year after 1999?
|
CREATE TABLE table_69468 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
|
SELECT "Entrant" FROM table_69468 WHERE "Year" > '1999'
|
Who wrote Season 8?
|
CREATE TABLE table_16617025_1 (
written_by VARCHAR,
season__number VARCHAR
)
|
SELECT written_by FROM table_16617025_1 WHERE season__number = 8
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.