answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 | What are the positions with both players having more than 20 points and less than 10 points. | CREATE TABLE player (POSITION VARCHAR, Points INTEGER) |
SELECT MIN(points) FROM table_name_41 WHERE entrant = "goulds' garage (bristol)" AND engine = "maserati straight-6" AND year < 1956 | What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956? | CREATE TABLE table_name_41 (
points INTEGER,
year VARCHAR,
entrant VARCHAR,
engine VARCHAR
) |
SELECT sfc_in_g__kn·s_ FROM table_15944_5 WHERE specific_impulse__s_ = 453 | What is the SFC when the specific impulse is 453? | CREATE TABLE table_15944_5 (sfc_in_g__kn·s_ VARCHAR, specific_impulse__s_ VARCHAR) |
SELECT SUM(Points) FROM player | Show total points of all players. | CREATE TABLE player (Points INTEGER) |
SELECT T1.Participant_Type_Code, SUM(COUNT(*)) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_Type_Code ORDER BY SUM(COUNT(*)) | How many events have each participants attended? Show their total number by each participant type code using a bar chart, rank in asc by the total number of count(*). | CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Participants (
Participant_ID... |
SELECT start_date__1st_night_ FROM table_159359_2 WHERE season = "1966" | When are start dates (1st night) for the season of 1966? | CREATE TABLE table_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR) |
SELECT COUNT(DISTINCT POSITION) FROM player | how many different positions are there? | CREATE TABLE player (POSITION VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid ... | how many hours have elapsed since the last time patient 005-87465 had an intake of norepinephrine on the current icu visit? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... |
SELECT end_date__last_night_ FROM table_159359_2 WHERE season = "1918" | When are end dates (last night) for the season of 1918? | CREATE TABLE table_159359_2 (end_date__last_night_ VARCHAR, season VARCHAR) |
SELECT name FROM player WHERE points > (SELECT AVG(points) FROM player) | what are the name of players who get more than the average points. | CREATE TABLE player (name VARCHAR, points INTEGER) |
SELECT "Date" FROM table_3247 WHERE "Winning Team" = 'Prema Powerteam' | On what date(s) was the winning team Prema Powerteam? | CREATE TABLE table_3247 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
) |
SELECT harris FROM table_159614_2 WHERE party = "Labour" | What is the percentage of the Labour Party on the Harris Poll | CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR) |
SELECT COUNT(*), POSITION FROM player WHERE points < 30 GROUP BY POSITION | find the number of players whose points are lower than 30 in each position. | CREATE TABLE player (POSITION VARCHAR, points INTEGER) |
SELECT "judge" FROM table_203_572 WHERE "judge" IN ('wayne edward alley', 'james henry alesia') ORDER BY "began active\nservice" LIMIT 1 | which judge began active service first , wayne edward alley or james henry alesia ? | CREATE TABLE table_203_572 (
id number,
"judge" text,
"court" text,
"began active\nservice" text,
"ended active\nservice" text,
"ended senior\nstatus" text
) |
SELECT opinion_research_centre__opc_ FROM table_159614_2 WHERE national_opinion_polls__nop_ = "1.3%" | On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? | CREATE TABLE table_159614_2 (opinion_research_centre__opc_ VARCHAR, national_opinion_polls__nop_ VARCHAR) |
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | which country did participated in the most number of Tournament competitions? | CREATE TABLE competition (country VARCHAR, competition_type VARCHAR) |
SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984 | What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? | CREATE TABLE table_name_73 (
down__up_to_kbit_s_ INTEGER,
provider VARCHAR,
up__up_to_kbit_s_ VARCHAR
) |
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "1988" | Name the del pueblo for centennial 1988 | CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR) |
SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' | which countries did participated in both Friendly and Tournament type competitions. | CREATE TABLE competition (country VARCHAR, competition_type VARCHAR) |
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-1155') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unit... | how many times does patient 010-1155 have a po liqs intake on the first icu visit? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992" | Name the centennial for 1992 akimel | CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR) |
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' | Find the countries that have never participated in any competition with Friendly type. | CREATE TABLE competition (country VARCHAR, competition_type VARCHAR) |
SELECT date FROM table_name_40 WHERE competition = "2006 fifa world cup qualification" AND venue = "alamodome, san antonio, united states" | What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue? | CREATE TABLE table_name_40 (
date VARCHAR,
competition VARCHAR,
venue VARCHAR
) |
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "Red/black" | Name the del pueblo for red/black | CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR) |
SELECT SUM(num_of_component) FROM furniture | How many furniture components are there in total? | CREATE TABLE furniture (num_of_component INTEGER) |
SELECT 350 AS _cc FROM table_name_90 WHERE track = "sachsenring" | Who won the 350cc at Sachsenring? | CREATE TABLE table_name_90 (
track VARCHAR
) |
SELECT centennial FROM table_15977768_1 WHERE information = "Location" | Name the centennial for location | CREATE TABLE table_15977768_1 (centennial VARCHAR, information VARCHAR) |
SELECT name, furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1 | Return the name and id of the furniture with the highest market rate. | CREATE TABLE furniture (name VARCHAR, furniture_id VARCHAR, market_rate VARCHAR) |
SELECT "Tournament" FROM table_40323 WHERE "Events" > '11' AND "Top-5" = '0' AND "Top-25" = '2' | What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2? | CREATE TABLE table_40323 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT host FROM table_1597866_3 WHERE first_premiere = "August 3, 2007" | Name the host when first premiere is august 3, 2007 | CREATE TABLE table_1597866_3 (host VARCHAR, first_premiere VARCHAR) |
SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2 | find the total market rate of the furnitures that have the top 2 market shares. | CREATE TABLE furniture (market_rate INTEGER) |
SELECT HIRE_DATE, SALARY FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY HIRE_DATE | Line chart, let hire data as X and salary as Y, and filter for employees without the letter M in their first name, display by the x axis in ascending. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALA... |
SELECT regular_judge FROM table_1597866_3 WHERE host = "Anja Rubik" | Name the regular judge when host is anja rubik | CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR) |
SELECT Num_of_Component, name FROM furniture WHERE Num_of_Component > 10 | Find the component amounts and names of all furnitures that have more than 10 components. | CREATE TABLE furniture (Num_of_Component INTEGER, name VARCHAR) |
SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue | Show the number of venue from each venue | CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
) |
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan" | Name the number of regular judge when host is bernie chan | CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR) |
SELECT name, Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1 | Find the name and component amount of the least popular furniture. | CREATE TABLE furniture (name VARCHAR, Num_of_Component VARCHAR, market_rate VARCHAR) |
SELECT MAX("Wins") FROM table_58322 WHERE "Against" > '1249' AND "Losses" < '17' | What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17? | CREATE TABLE table_58322 (
"Mid Gippsland FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) |
SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = "74 runs" | Name the most number for 74 runs margins | CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR) |
SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT MAX(Price_in_Dollar) FROM furniture_manufacte) | Find the names of furnitures whose prices are lower than the highest price. | CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, Price_in_Dollar INTEGER); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Price_in_Dollar INTEGER) |
SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, find last_name and salary , and visualize them by a bar chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... |
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India" | Name the number of team for 35 runs margin and india winner | CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR) |
SELECT open_year, name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1 | Which manufacturer has the most number of shops? List its name and year of opening. | CREATE TABLE manufacturer (open_year VARCHAR, name VARCHAR, num_of_shops VARCHAR) |
SELECT patient.age FROM patient WHERE patient.uniquepid = '033-3992' AND patient.hospitaldischargetime IS NULL | what did patient 033-3992's age be during this hospital encounter? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT team__a_ FROM table_1594772_2 WHERE match_date = "Feb 27, 1996" | Namethe team for feb 27, 1996 | CREATE TABLE table_1594772_2 (team__a_ VARCHAR, match_date VARCHAR) |
SELECT AVG(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20 | Find the average number of factories for the manufacturers that have more than 20 shops. | CREATE TABLE manufacturer (Num_of_Factories INTEGER, num_of_shops INTEGER) |
SELECT "2006" FROM table_50783 WHERE "2000" = '1r' AND "1996" = 'a' AND "Tournament" = 'cincinnati masters' | What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? | CREATE TABLE table_50783 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text... |
SELECT s_no FROM table_1594772_2 WHERE match_date = "Feb 27, 1996" | Name the numbers for date of feb 27, 1996 | CREATE TABLE table_1594772_2 (s_no VARCHAR, match_date VARCHAR) |
SELECT name, manufacturer_id FROM manufacturer ORDER BY open_year | List all manufacturer names and ids ordered by their opening year. | CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR, open_year VARCHAR) |
SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road | Stacked bar chart of team_id for with each ACC_Home in each acc road | 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 (
Scho... |
SELECT team__b_ FROM table_1594772_2 WHERE match_date = "Oct 30, 1989" | Name the team for oct 30, 1989 | CREATE TABLE table_1594772_2 (team__b_ VARCHAR, match_date VARCHAR) |
SELECT name, open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10 | Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops. | CREATE TABLE manufacturer (name VARCHAR, open_year VARCHAR, num_of_shops VARCHAR, Num_of_Factories VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2103') AS t1 JOIN (SELECT patient.uniquepid, medicat... | how many patients were prescribed sodium chloride 0.9% 500 ml lvp within 2 months after the diagnosis of sepsis, since 2103? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... |
SELECT winner FROM table_1594772_2 WHERE match_date = "Nov 5, 1987" | Name the winner for date of nov 5, 1987 | CREATE TABLE table_1594772_2 (winner VARCHAR, match_date VARCHAR) |
SELECT MAX(num_of_shops), AVG(Num_of_Factories) FROM manufacturer WHERE open_year < 1990 | what is the average number of factories and maximum number of shops for manufacturers that opened before 1990. | CREATE TABLE manufacturer (num_of_shops INTEGER, Num_of_Factories INTEGER, open_year INTEGER) |
SELECT COUNT("nation") FROM table_203_653 WHERE "nation" <> 'germany' AND "bronze" = (SELECT "bronze" FROM table_203_653 WHERE "nation" = 'germany') | what countries have the same amount of bronze medals as germany ? | CREATE TABLE table_203_653 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT COUNT(oilers_first_downs) FROM table_15984957_2 WHERE date = "Sept. 17" | On Sept. 17, how many first downs did the oilers have? | CREATE TABLE table_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR) |
SELECT t1.manufacturer_id, t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1 | Find the id and number of shops for the company that produces the most expensive furniture. | CREATE TABLE manufacturer (manufacturer_id VARCHAR, num_of_shops VARCHAR); CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR, Price_in_Dollar VARCHAR) |
SELECT * FROM table_train_64 WHERE enteral_feeding = 0 OR receiving_parenteral_nutrition = 1 | patients with no indication for enteral feeding or in the imminence of receiving parenteral nutrition | CREATE TABLE table_train_64 (
"id" int,
"hiv_infection" bool,
"receiving_parenteral_nutrition" bool,
"hypertriglyceridemia" bool,
"enteral_feeding" bool,
"body_mass_index_bmi" float,
"diarrhea" bool,
"NOUSE" float
) |
SELECT MIN(game) FROM table_15984957_2 WHERE opponent = "Los Angeles Rams" | How many games were against the los angeles rams? | CREATE TABLE table_15984957_2 (game INTEGER, opponent VARCHAR) |
SELECT COUNT(*), t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id | Find the number of funiture types produced by each manufacturer as well as the company names. | CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR) |
SELECT "Department" FROM table_44284 WHERE "Qualification" = 'm.phil (physics)' | What department has an m.phil (physics) qualification? | CREATE TABLE table_44284 (
"College code" text,
"Faculty name" text,
"Designation" text,
"Qualification" text,
"Department" text,
"Experience" text
) |
SELECT annual_change__percentage_of_gdp__2012_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "20.5%" | What is the annual change of GDP with a 20.5% GDP of EU in 2012? | CREATE TABLE table_1598533_8 (annual_change__percentage_of_gdp__2012_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR) |
SELECT t1.name, t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID | Give me the names and prices of furnitures which some companies are manufacturing. | CREATE TABLE furniture_manufacte (price_in_dollar VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR) |
SELECT home_team FROM table_name_21 WHERE venue = "vfl park" | Tell me the home team for vfl park venue | CREATE TABLE table_name_21 (
home_team VARCHAR,
venue VARCHAR
) |
SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "4.7%" | What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012? | CREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR) |
SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte) | Find the market shares and names of furnitures which no any company is producing in our records. | CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR) |
SELECT answers.Id AS "post_link" FROM Posts AS questions INNER JOIN Posts AS answers ON answers.ParentId = questions.Id WHERE NOT (questions.Body LIKE '%shaken%') AND answers.Body LIKE '%shaken%' | Answers containing search term for questions that don't. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAc... |
SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505 | What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012? | CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR) |
SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN ... | Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components. | CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR); CREATE TABLE furniture (Furniture_ID VARCHAR, num_of_component INTEGER) |
SELECT "Time" FROM table_37927 WHERE "Opponent" = 'white sox' AND "Record" = '63-70' | At what time was the game when they played the White Sox and had a record of 63-70? | CREATE TABLE table_37927 (
"Date" text,
"Time" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT place FROM table_15988037_24 WHERE perfect_40s = 0 AND average = "27.25" | What are all the places where the number of perfect 40s is 0 and the average is 27.25? | CREATE TABLE table_15988037_24 (place VARCHAR, perfect_40s VARCHAR, average VARCHAR) |
SELECT T1.first_name, T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id | Display the first name and department name for each employee. | CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, department_id VARCHAR) |
SELECT "Away team" FROM table_57431 WHERE "Home team" = 'south melbourne' | What team played South Melbourne at their home game? | CREATE TABLE table_57431 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5" | What is the maximum total in which the average is 28.5? | CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR) |
SELECT first_name, last_name, salary FROM employees WHERE salary < 6000 | List the full name (first and last name), and salary for those employees who earn below 6000. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER) |
SELECT "Res." FROM table_61332 WHERE "Time" = '11:58' | Which Res has a Time of 11:58? | CREATE TABLE table_61332 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT MIN(perfect_40s) FROM table_15988037_24 | What is the minimum number of perfect 40s? | CREATE TABLE table_15988037_24 (perfect_40s INTEGER) |
SELECT first_name, department_id FROM employees WHERE last_name = 'McEwen' | Display the first name, and department number for all employees whose last name is "McEwen". | CREATE TABLE employees (first_name VARCHAR, department_id VARCHAR, last_name VARCHAR) |
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2 | Loses of 2, and a Pos. smaller than 2 had how many highest matches? | CREATE TABLE table_name_75 (
matches INTEGER,
loses VARCHAR,
pos VARCHAR
) |
SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum" | When using a .375 Remington Ultra Magnum, what is the muzzle velocity? | CREATE TABLE table_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR) |
SELECT * FROM employees WHERE department_id = "null" | Return all the information for all employees without any department number. | CREATE TABLE employees (department_id VARCHAR) |
SELECT MAX(rank) FROM table_name_12 WHERE nation = "iceland" AND silver < 19 | Where does Iceland rank with under 19 silvers? | CREATE TABLE table_name_12 (
rank INTEGER,
nation VARCHAR,
silver VARCHAR
) |
SELECT cartridge FROM table_16010376_1 WHERE source = "Weatherby" | What type of cartridge is used by a Weatherby? | CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR) |
SELECT * FROM departments WHERE department_name = 'Marketing' | Display all the information about the department Marketing. | CREATE TABLE departments (department_name VARCHAR) |
SELECT song FROM table_name_98 WHERE language = "french" | What song was in french? | CREATE TABLE table_name_98 (
song VARCHAR,
language VARCHAR
) |
SELECT cartridge FROM table_16010376_1 WHERE source = "Winchester" | What type of cartridge is used by a Winchester? | CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR) |
SELECT hire_date FROM employees WHERE NOT first_name LIKE '%M%' | when is the hire date for those employees whose first name does not containing the letter M? | CREATE TABLE employees (hire_date VARCHAR, first_name VARCHAR) |
SELECT "Home team score" FROM table_53393 WHERE "Venue" = 'princes park' | What did the home team score at Princes Park? | CREATE TABLE table_53393 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby" | What is the weight of the bullet used in a Weatherby? | CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR) |
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' | display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR) |
SELECT name FROM table_name_61 WHERE location = "jewellery quarter" | What is the name of the building at the Jewellery quarter? | CREATE TABLE table_name_61 (
name VARCHAR,
location VARCHAR
) |
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Remington" | What is the weight of the bullet used in a Remington? | CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR) |
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id | display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR) |
SELECT Id AS "comment_link" FROM Comments LIMIT 100 | Catalogue of Comments Including <idownvotedbecau.se> Links. | CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... |
SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".375 Winchester" | When using a .375 Winchester, what is the muzzle energy? | CREATE TABLE table_16010376_1 (muzzle_energy VARCHAR, cartridge VARCHAR) |
SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000 | what is the phone number of employees whose salary is in the range of 8000 and 12000? | CREATE TABLE employees (phone_number VARCHAR, salary INTEGER) |
SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850" | Name the head of household for married filing jointly or qualified widow(er) being $137,051 $208,850 | CREATE TABLE table_name_32 (
head_of_household VARCHAR,
married_filing_jointly_or_qualified_widow_er_ VARCHAR
) |
SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = "$150" | Which headphone models correspond to the US MSRP of $150? | CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR) |
SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct <> "null" OR department_id <> 40 | display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40. | CREATE TABLE employees (department_id VARCHAR, salary VARCHAR, commission_pct VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.