answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | What are the names and ids of the tourist attractions that are visited at most once. Visualize by bar chart. | CREATE TABLE Ref_Hotel_Star_Ratings (
star_rating_code CHAR(15),
star_rating_description VARCHAR(80)
)
CREATE TABLE Museums (
Museum_ID INTEGER,
Museum_Details VARCHAR(255)
)
CREATE TABLE Tourist_Attractions (
Tourist_Attraction_ID INTEGER,
Attraction_Type_Code CHAR(15),
Location_ID INTEGE... |
SELECT MAX(crowd) FROM table_name_94 WHERE away_team = "south melbourne" | What was the biggest crowd when South Melbourne was an away team? | CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR) |
SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35 | What is the maximum number of blocks where rebounds equal 35? | CREATE TABLE table_19722664_5 (blocks INTEGER, rebounds VARCHAR) |
SELECT school FROM table_name_37 WHERE state = "oregon" AND city = "ashland" | What school has oregon as the state, and ashland as the city? | CREATE TABLE table_name_37 (
school VARCHAR,
state VARCHAR,
city VARCHAR
) |
SELECT SUM(attendance) FROM table_name_9 WHERE date = "8 march 2008" | How many people attended the game on 8 March 2008? | CREATE TABLE table_name_9 (attendance INTEGER, date VARCHAR) |
SELECT assists FROM table_19722664_5 WHERE player = "DeLisha Milton-Jones" | How many assists did Delisha Milton-Jones make? | CREATE TABLE table_19722664_5 (assists VARCHAR, player VARCHAR) |
SELECT formats, COUNT(*) FROM files GROUP BY formats | For each file format, return the number of artists who released songs in that format. | CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating nu... |
SELECT away_team AS score FROM table_name_15 WHERE home_team = "geelong" | What is the Away team score when they played Geelong as the Home team? | CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR) |
SELECT MAX(total_apps) FROM table_19730892_1 WHERE name = "Eddie Carr" | Name the total apps for eddie carr | CREATE TABLE table_19730892_1 (total_apps INTEGER, name VARCHAR) |
SELECT "office" FROM table_201_10 WHERE "political party" IS NULL ORDER BY "office" DESC LIMIT 1 | after what year were austevoll mayors affiliated with political parties ? | CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
) |
SELECT home_team AS score FROM table_name_73 WHERE home_team = "carlton" | What did Carlton score when they were the Home team? | CREATE TABLE table_name_73 (home_team VARCHAR) |
SELECT fa_cup_apps FROM table_19730892_1 WHERE name = "Arthur Morton" | Name the fa cup apps for arthur morton | CREATE TABLE table_19730892_1 (fa_cup_apps VARCHAR, name VARCHAR) |
SELECT Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Revenue) | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the sum of revenue , and group by attribute headquarter, and I want to rank total number in asc order. | 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 home_team FROM table_name_53 WHERE away_team = "fitzroy" | What is the name of the Home team that played Fitzroy as the Away team? | CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR) |
SELECT position FROM table_19730892_1 WHERE name = "Billy Price" | Name the position for billy price | CREATE TABLE table_19730892_1 (position VARCHAR, name VARCHAR) |
SELECT DATEPART(hour, CreationDate) AS Hour, AVG(CAST(ViewCount AS FLOAT)) AS "average_views" FROM Posts WHERE PostTypeId = 1 AND CreationDate > DATEADD(year, -2, GETUTCDATE()) GROUP BY DATEPART(hour, CreationDate) ORDER BY Hour | Question Views by Hour (last 2 years). | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
Di... |
SELECT SUM(points) FROM table_name_31 WHERE grade = "a" | What is the total number of points when the grade was A? | CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR) |
SELECT COUNT(position) FROM table_19730892_1 WHERE name = "Don Clegg" | Name the total number of position for don clegg | CREATE TABLE table_19730892_1 (position VARCHAR, name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2163" | How many patients were admitted as transfer from hosp/extram before the year 2163? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT standing_broad_jump__cm_ FROM table_name_67 WHERE grade = "b" | Which standing broad jump (cm) had the b grade? | CREATE TABLE table_name_67 (standing_broad_jump__cm_ VARCHAR, grade VARCHAR) |
SELECT nation FROM table_19730892_1 WHERE name = "Jeff Barker" | Name the nation where jeff barker is from | CREATE TABLE table_19730892_1 (nation VARCHAR, name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "61" AND demographic.days_stay > "23" | how many patients less than 61 years were admitted to hospital for more than 23 days? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... |
SELECT grade FROM table_name_54 WHERE chin_up__reps_ = "9-10" | Which grade did the chin-up (reps) 9-10 receive? | CREATE TABLE table_name_54 (grade VARCHAR, chin_up__reps_ VARCHAR) |
SELECT fa_cup_apps FROM table_19730892_1 WHERE name = "George Green" | Name the fa cup apps for george green | CREATE TABLE table_19730892_1 (fa_cup_apps VARCHAR, name VARCHAR) |
SELECT COUNT(position) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars" | What's the number of positions of the player playing in Minnesota North Stars? | CREATE TABLE table_1965650_4 (
position VARCHAR,
nhl_team VARCHAR
) |
SELECT year FROM table_name_99 WHERE comp = "33" | What year was the comp 33? | CREATE TABLE table_name_99 (year VARCHAR, comp VARCHAR) |
SELECT institution FROM table_1973648_1 WHERE founded = 1950 | Name the school that was founded in 1950 | CREATE TABLE table_1973648_1 (institution VARCHAR, founded VARCHAR) |
SELECT UserId AS "user_link" FROM Badges INNER JOIN Users ON Users.Id = Badges.UserId WHERE Name LIKE 'Deputy' AND Reputation < 10000 | List user with Deputy badge and less than 10K reputation.. List user with Deputy badge with no access to moderation tools | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... |
SELECT ravg FROM table_name_51 WHERE year = "1984" | In 1984, what was the RAvg? | CREATE TABLE table_name_51 (ravg VARCHAR, year VARCHAR) |
SELECT MAX(founded) FROM table_1973648_1 WHERE nickname = "Sea Gulls" | Name the most founded for sea gulls | CREATE TABLE table_1973648_1 (founded INTEGER, nickname VARCHAR) |
SELECT "Opponent" FROM table_52631 WHERE "Week" = '3' | I want to know the opponent that ha a week of 3 | CREATE TABLE table_52631 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Time" text,
"Attendance" text
) |
SELECT ratt FROM table_name_85 WHERE year = "1983" | In 1983, what was the RAtt? | CREATE TABLE table_name_85 (ratt VARCHAR, year VARCHAR) |
SELECT location FROM table_1973648_1 WHERE nickname = "Eagles" | Name the location for eagles | CREATE TABLE table_1973648_1 (location VARCHAR, nickname VARCHAR) |
SELECT "Slalom" FROM table_7036 WHERE "Super G" = '4' | Which Slalom has a Super G of 4? | CREATE TABLE table_7036 (
"Season" real,
"Overall" text,
"Slalom" text,
"Giant Slalom" text,
"Super G" text,
"Downhill" text,
"Combined" text
) |
SELECT team FROM table_name_67 WHERE rate = "94.1" | What team has a 94.1 rating? | CREATE TABLE table_name_67 (team VARCHAR, rate VARCHAR) |
SELECT enrollment FROM table_1973648_1 WHERE joined = "2007-08" | Name the enrollment for 2007-08 | CREATE TABLE table_1973648_1 (enrollment VARCHAR, joined VARCHAR) |
SELECT school FROM table_name_74 WHERE player = "alonzo mourning" | What School did Player Alonzo Mourning attend? | CREATE TABLE table_name_74 (
school VARCHAR,
player VARCHAR
) |
SELECT year FROM table_name_60 WHERE ratt = "1" AND comp = "49" | What year has a RAtt of 1 and a comp of 49? | CREATE TABLE table_name_60 (year VARCHAR, ratt VARCHAR, comp VARCHAR) |
SELECT MIN(new_points) FROM table_1973321_5 WHERE player = "Steffi Graf" | Name the least new points for steffi graf | CREATE TABLE table_1973321_5 (new_points INTEGER, player VARCHAR) |
SELECT COUNT("Gold") FROM table_4378 WHERE "Total" < '1' | Tell me the total number of gold for total less than 1 | CREATE TABLE table_4378 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT loss FROM table_name_98 WHERE date = "august 7" | Who recorded the loss on august 7? | CREATE TABLE table_name_98 (loss VARCHAR, date VARCHAR) |
SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo" | Name the most points for champion, won in the final against amélie mauresmo | CREATE TABLE table_1973321_5 (points INTEGER, status VARCHAR) |
SELECT skip FROM table_name_58 WHERE country = "denmark" | What skip has denmark as the country? | CREATE TABLE table_name_58 (
skip VARCHAR,
country VARCHAR
) |
SELECT home_team AS score FROM table_name_7 WHERE away_team = "st kilda" | When the away team was st kilda, what did the home team score? | CREATE TABLE table_name_7 (home_team VARCHAR, away_team VARCHAR) |
SELECT further_cities FROM table_197286_4 WHERE country = "Slovakia" AND direction = "West" | Name the further cities for slovakia and west direction | CREATE TABLE table_197286_4 (further_cities VARCHAR, country VARCHAR, direction VARCHAR) |
SELECT "Date of Birth" FROM table_78691 WHERE "Height" = 'head coach: adel shamala' | What is Date of Birth, when Height is 'Head Coach: Adel Shamala'? | CREATE TABLE table_78691 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) |
SELECT away_team AS score FROM table_name_98 WHERE home_team = "geelong" | When the home team was geelong, what did the away team score? | CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR) |
SELECT distance FROM table_197286_4 WHERE direction = "North" | Name the distance from north | CREATE TABLE table_197286_4 (distance VARCHAR, direction VARCHAR) |
SELECT score FROM table_name_29 WHERE team = "@ memphis" | What is Score, when Team is '@ Memphis'? | CREATE TABLE table_name_29 (
score VARCHAR,
team VARCHAR
) |
SELECT artist FROM table_name_11 WHERE issue_price = "$8,159.95" | Which Artist has an Issue Price of $8,159.95? | CREATE TABLE table_name_11 (artist VARCHAR, issue_price VARCHAR) |
SELECT further_cities FROM table_197286_4 WHERE direction = "East" AND country = "Romania" | Name the further cities for east romania | CREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR) |
SELECT "Tie no" FROM table_43538 WHERE "Away team" = 'bolton wanderers' | Which tie number has Bolton Wanderers as away? | CREATE TABLE table_43538 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT MIN(mintage) FROM table_name_9 WHERE artist = "royal canadian mint engravers" AND issue_price = "$10,199.95" AND year > 2009 | What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Year 2009, with an Issue Price of $10,199.95? | CREATE TABLE table_name_9 (mintage INTEGER, year VARCHAR, artist VARCHAR, issue_price VARCHAR) |
SELECT COUNT(direction) FROM table_197286_4 WHERE further_cities = "Debrecen" | Name the number of direction for debrecen | CREATE TABLE table_197286_4 (direction VARCHAR, further_cities VARCHAR) |
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'tb of organ nec-histo dx' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'tb of organ nec-histo dx' | tb of organ nec-histo dx what does it stand for? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE... |
SELECT SUM(mintage) FROM table_name_75 WHERE artist = "steve hepburn" | What is the sum of Artist Steve Hepburn's Mintage? | CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR) |
SELECT nickname FROM table_1973816_1 WHERE founded = 1933 | What's the nickname of the students of the school founded in 1933? | CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR) |
SELECT Id AS "user_link" FROM Users WHERE DisplayName LIKE '%tehran%' LIMIT 1000 | #SOreadytohelp winners - week 1. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE R... |
SELECT AVG(year) FROM table_name_35 WHERE artist = "royal canadian mint engravers" AND mintage < 200 | What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200? | CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR) |
SELECT COUNT(location) FROM table_1973816_1 WHERE institution = "Saint Joseph's College of Maine" | On how many locations is the Saint Joseph's College of Maine located? | CREATE TABLE table_1973816_1 (location VARCHAR, institution VARCHAR) |
SELECT "Left office" FROM table_28607 WHERE "Election number" = '11' | What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11? | CREATE TABLE table_28607 (
"Election number" real,
"Election date" text,
"District" text,
"Province" text,
"Took office" text,
"Left office" text
) |
SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008 | When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist? | CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR) |
SELECT COUNT(joined) FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts" | On how many different dates did schools from Chestnut Hill, Massachusetts join the conference? | CREATE TABLE table_1973842_1 (joined VARCHAR, location VARCHAR) |
SELECT opponent FROM table_name_86 WHERE record = "17-11" | Which opponent has a record of 17-11? | CREATE TABLE table_name_86 (
opponent VARCHAR,
record VARCHAR
) |
SELECT until FROM table_name_76 WHERE name = "josé luis sánchez solá" | When did José Luis Sánchez Solá end his term of coaching? | CREATE TABLE table_name_76 (until VARCHAR, name VARCHAR) |
SELECT type FROM table_1973842_1 WHERE nickname = "Tigers" | What is the type of the school whose students' nickname is tigers? | CREATE TABLE table_1973842_1 (type VARCHAR, nickname VARCHAR) |
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND year_made = "1914" AND year_s__withdrawn = "1959" | What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959? | CREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR) |
SELECT type FROM table_1973842_1 WHERE nickname = "Spirits" | What's the type of the school whose students' name is spirits? | CREATE TABLE table_1973842_1 (type VARCHAR, nickname VARCHAR) |
SELECT ph.PostId AS "post_link", revisions = 'site://posts/' + CAST(ph.PostId AS TEXT) + '/revisions' FROM PostHistory AS ph WHERE (ph.PostHistoryTypeId = 16) AND ph.Id IN (SELECT MAX(Id) AS last FROM PostHistory GROUP BY PostId) ORDER BY ph.PostId DESC | Posts where last event was CW-ification. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number... |
SELECT class FROM table_name_47 WHERE wheel_arrangement = "4-6-0" AND quantity_made = "14" | What is the class of the locomotive with a wheel arrangement of 4-6-0 and a quantity made of 14? | CREATE TABLE table_name_47 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR) |
SELECT institution FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts" | What school is located in Chestnut Hill, Massachusetts? | CREATE TABLE table_1973842_1 (institution VARCHAR, location VARCHAR) |
SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor) | What is the lowest salary in departments with average salary greater than the overall average. | CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,
room_number text,
time_slot_id text
)
CREATE TABLE teaches (
id text,
course_id text,
... |
SELECT fleet_number_s_ FROM table_name_59 WHERE quantity_made = "1" | What is the fleet number of the locomotive with 1 quantity made? | CREATE TABLE table_name_59 (fleet_number_s_ VARCHAR, quantity_made VARCHAR) |
SELECT type FROM table_1973842_1 WHERE location = "Macon, Georgia" | What type is the school located in Macon, Georgia? | CREATE TABLE table_1973842_1 (type VARCHAR, location VARCHAR) |
SELECT demographic.admission_type, demographic.admittime FROM demographic WHERE demographic.subject_id = "83678" | for patients id 83678, specify the time and type of admission | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... |
SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda" | In games where st kilda was the away team, what was the smallest crowd? | CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR) |
SELECT nickname FROM table_1973842_2 WHERE location = "Maryville, Tennessee" | What's the nickname of the school in Maryville, Tennessee? | CREATE TABLE table_1973842_2 (nickname VARCHAR, location VARCHAR) |
SELECT COUNT(DISTINCT job) FROM person | How many different jobs are listed? | CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) |
SELECT home_team AS score FROM table_name_7 WHERE home_team = "fitzroy" | In fitzroy's match where they were the home team, how much did they score? | CREATE TABLE table_name_7 (home_team VARCHAR) |
SELECT location FROM table_1973842_2 WHERE nickname = "Tigers" | Where is the school with nickname Tigers located? | CREATE TABLE table_1973842_2 (location VARCHAR, nickname VARCHAR) |
SELECT COUNT("album title") FROM table_203_77 WHERE NOT "chart positions" IS NULL | what is the total number of albus from this chart that made the billboard 200 ? | CREATE TABLE table_203_77 (
id number,
"album title" text,
"format" text,
"year" number,
"original label" text,
"chart positions" text
) |
SELECT home_team AS score FROM table_name_4 WHERE venue = "mcg" | What was the score for the home team who plays their matches at the mcg venue? | CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) |
SELECT nickname FROM table_1973842_2 WHERE joined = 2010 | What's the nickname of the students of the school that joined the Conference in 2010? | CREATE TABLE table_1973842_2 (nickname VARCHAR, joined VARCHAR) |
SELECT glider FROM table_name_40 WHERE speed = "147.3km/h" | What is Glider, when Speed is '147.3km/h'? | CREATE TABLE table_name_40 (
glider VARCHAR,
speed VARCHAR
) |
SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4 | Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4? | CREATE TABLE table_name_50 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) |
SELECT founded FROM table_1973816_2 WHERE institution = "Daniel Webster College" | When was Daniel Webster College founded? | CREATE TABLE table_1973816_2 (founded VARCHAR, institution VARCHAR) |
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name | What are the names of all female candidates in alphabetical order (sex is F)? | CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,... |
SELECT SUM(wins) FROM table_name_8 WHERE earnings__$__ > 720 OFFSET 134 | How many wins do the players that earned more than 720,134 have? | CREATE TABLE table_name_8 (wins INTEGER, earnings__$__ INTEGER) |
SELECT location FROM table_1973816_2 WHERE institution = "Southern Vermont College" | Where is Southern Vermont College located? | CREATE TABLE table_1973816_2 (location VARCHAR, institution VARCHAR) |
SELECT "Result" FROM table_76827 WHERE "Road Team" = 'boston' AND "Date" = 'april 23' | WHAT IS THE RESULT WITH THE BOSTON ROAD TEAM, ON APRIL 23? | CREATE TABLE table_76827 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) |
SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386 | Who is the highest ranked player that has earnings below 395,386? | CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER) |
SELECT left FROM table_1973816_2 WHERE enrollment = 650 | In what year did the school with enrollment of 650 leave? | CREATE TABLE table_1973816_2 (left VARCHAR, enrollment VARCHAR) |
SELECT "Date" FROM table_46272 WHERE "Winner" = 'new york giants' AND "Year" > '1985' AND "Result" = '17-14' | Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14? | CREATE TABLE table_46272 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) |
SELECT game FROM table_name_82 WHERE rams_points = 0 | In what Game did Rams Points equal 0? | CREATE TABLE table_name_82 (game VARCHAR, rams_points VARCHAR) |
SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th" | What was the number of races in the season in which the team placed on the 14th position? | CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR) |
SELECT "Engine" FROM table_69943 WHERE "Entrant" = 'scuderia ambrosiana' AND "Points" < '4' | What engine did Scuderia Ambrosiana with fewer than 4 points have? | CREATE TABLE table_69943 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) |
SELECT opponent FROM table_name_54 WHERE record = "6-0" | What Opponent has a 6-0 Record? | CREATE TABLE table_name_54 (opponent VARCHAR, record VARCHAR) |
SELECT MIN(wins) FROM table_19741316_1 | What is the lowest number of wins of a team? | CREATE TABLE table_19741316_1 (wins INTEGER) |
SELECT supplier FROM table_name_16 WHERE basic_shape = "flat" AND wrist_pad = "no" AND keys__x_modes_ = "25+" | Which Supplier have a Basic shape of flat, a Wrist pad of no, and Keys (x modes) of 25+? | CREATE TABLE table_name_16 (
supplier VARCHAR,
keys__x_modes_ VARCHAR,
basic_shape VARCHAR,
wrist_pad VARCHAR
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.