sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
Name the number of administrative unit for number 4 | SELECT name_of_administrative_unit FROM table_14465924_1 WHERE number = 4 |
What are the club names of the clubs they belong to, please? | select clubName from club where clubid in ( select distinct clubid from member_of_club group by stuid having count ( * ) = 1 ) |
What are the names of all the individuals in the table? | SELECT name FROM user_profiles |
How many orders were handled by Michael Suyama. State the order ID. | SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama' |
What is the Team with a Lap that is 5? | SELECT team FROM table_name_48 WHERE laps = 5 |
What is Event, when Opponent is "Joe Pardo"? | SELECT event FROM table_name_41 WHERE opponent = "joe pardo" |
what are the student names who are in PHL city and are between 20 and 25 years of age | First name or last name? | first | SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 |
Name the 2012 for 2009 of a and 2010 of a and 2011 of a | SELECT 2012 FROM table_name_89 WHERE 2009 = "a" AND 2010 = "a" AND 2011 = "a" |
How many parks are there in the state of NY? | SELECT COUNT(*) FROM park WHERE state = 'NY' |
What is the rate of increase of users with a current mental disorder from 2019's survey to 2016's survey? | SELECT CAST(( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2019 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) - ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) AS REAL) * 100 / ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) |
What is Visitor, when Home is Philadelphia, and when Date is November 18? | SELECT visitor FROM table_name_11 WHERE home = "philadelphia" AND date = "november 18" |
What is the nickname of the employee named Janessa Sawayn? | SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; |
What is the percentage of this constellation with an area of 248.885 sq. deg.? | SELECT percentage FROM table_177766_1 WHERE area__sqdeg_ = "248.885" |
What ground has a match smaller than 2? | SELECT ground FROM table_name_16 WHERE match < 2 |
Which Member has an Electorate of southern melbourne? | SELECT member FROM table_name_36 WHERE electorate = "southern melbourne" |
What are the names of all video games that are collectible cards? | SELECT gname FROM Video_games WHERE gtype = "Collectible card game" |
Count the number of templates of the type CV. | SELECT count(*) FROM Templates WHERE template_type_code = "CV" |
What is the minimum, average, and maximum distance of all aircrafts. | SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft |
With a Division II of Portsmouth, what is the Division IV? | SELECT division_iV FROM table_name_35 WHERE division_iII = portsmouth |
That's okay. What are some of Accept's other albums? | SELECT T1.Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Accept" AND T1.Title ! = "Balls to the Wall" |
When grand prix de sar la princesse lalla meryem is the tournament what is the town? | SELECT town FROM table_2803662_3 WHERE tournament = "Grand Prix De SAR La Princesse Lalla Meryem" |
How many were promoted from the league when Esher was relegated to the league? | SELECT COUNT(promoted_from_league) FROM table_23927423_4 WHERE relegated_to_league = "Esher" |
What catalog came out after 2000? | SELECT catalog FROM table_name_23 WHERE year > 2000 |
What are the ratings of the film featuring behind the scenes? | SELECT rating FROM film WHERE special_features LIKE '%Behind the Scenes%' |
On what date did Mike Hawthorn have the fastest lap for the E Tyre of the Silverstone Circuit? | SELECT date FROM table_name_36 WHERE fastest_lap = "mike hawthorn" AND tyre = "e" AND circuit = "silverstone" |
What is the id and market share of the browser Safari? | SELECT id , market_share FROM browser WHERE name = 'Safari' |
What is the elevator when the elector is Pietro Colonna? | SELECT elevator FROM table_name_77 WHERE elector = "pietro colonna" |
For Pick #323, which round is it? | SELECT round FROM table_name_41 WHERE pick__number = 323 |
Show the number of male and female assistant professors. | SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex |
Which Line has a Platform of 3? | SELECT line FROM table_name_62 WHERE platform = "3" |
What was the result of the election in the Arkansas 2 district? | SELECT result FROM table_1342359_4 WHERE district = "Arkansas 2" |
Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems. | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco" |
What religious groups made up 0.72% of the Indian population in 2001? | SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = "0.72%" |
What are the order dates of orders with price higher than 1000? | SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 |
What percentage do items under the category of 'Furniture' make up the total number of items ordered that are shipped as standard in the West region? | SELECT CAST(SUM(CASE WHEN T2.Category = 'Furniture' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T1.Quantity) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' AND T1.`Ship Mode` = 'Standard Class' |
What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score? | SELECT AVG(money___) AS £__ FROM table_name_8 WHERE to_par = "+8" AND score = 73 - 72 - 72 - 71 = 288 |
Which format is released on August 29, 1998? | SELECT format FROM table_name_72 WHERE date = "august 29, 1998" |
How many entries for prothrombin time are there where platelet count is "decreased or unaffected"? | SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected" |
What was the game site week 15? | SELECT game_site FROM table_name_79 WHERE week = 15 |
Name the publication date when the fictional date is 2112 | SELECT publication_date FROM table_name_25 WHERE fictional_date = "2112" |
What was spent per voter when the spent per vote was 20.07? | SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE spent_per_vote___php__ = "20.07" |
How many incumbents resulted in a lost renomination republican gain? | SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = "Lost renomination Republican gain" |
How many times did the team lose who had 1 of 37 points and less than 60 goals against? | SELECT MIN(lost) FROM table_name_30 WHERE points_1 = "37" AND goals_against < 60 |
Who was the opponent for game number less than 47 and a record of 24-13-4? | SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-4" |
What is her ID? | SELECT t2.customer_ID FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1 |
Return the template type description of the template type with the code AD. | SELECT template_type_description FROM Ref_template_types WHERE template_type_code = "AD" |
Write the complaint ID, call ID, and final phone number of complaints through AVIDAN server from 1/1/2014 to 12/30/2014. | SELECT `Complaint ID`, call_id, phonefinal FROM callcenterlogs WHERE strftime('%Y', `Date received`) = '2014' AND server = 'AVIDAN' |
For how many consecutive years did Aruba get a footnote on the series code BX.KLT.DINV.CD.WD? | SELECT COUNT(T2.Year) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'BX.KLT.DINV.CD.WD' |
What Event has a Prize of €869,000? | SELECT event FROM table_name_77 WHERE prize = "€869,000" |
What was Cici Kelley's minimum season? | SELECT MIN(season) FROM table_2140071_8 WHERE coach = "Cici Kelley" |
what is the city of San Jose Civic Center | SELECT city from station where name = "San Jose Civic Center" |
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8? | SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8 |
Which airport has an IATA of hgh? | SELECT airport FROM table_name_29 WHERE iata = "hgh" |
Find the name and credit score of the customers who have some loans. | SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id |
List down the page id of titles start with alphabet "b". | SELECT pid FROM pages WHERE title LIKE 'b%' |
What is the mean game played on January 9? | SELECT AVG(game) FROM table_name_82 WHERE date = "january 9" |
What is the lowest league cup with a premier League of 1, and the total is less than 5? | SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5 |
What rank has jo angel (wa) as the player? | SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)" |
Who is the incumbent of district pa-8? | SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8" |
How many events in total have happened on all the vivo devices in the year 2016? | SELECT COUNT(T1.event_id) FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.event_id = T2.device_id WHERE STRFTIME('%Y', T1.timestamp) = '2016' AND T2.phone_brand = 'vivo' |
what is the longitude of Santa Clara at Almaden? | SELECT distinct T1.long FROM station AS T1 JOIN trip AS T2 where T1.name = 'Santa Clara at Almaden' |
what is id of students who registered some courses but the least number of courses in these students? | SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1 |
What are the result description of the project whose detail is 'sint'? | SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'; |
What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? | SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 june" |
When mixed quad singles is the event what is the final/bronze medal match? | SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = "Mixed Quad Singles" |
What is the nickname of the college established in 1773? | SELECT nickname FROM table_name_65 WHERE established = 1773 |
During which years was the model with the Engine code of m54b25 manufactured? | SELECT years FROM table_name_11 WHERE engine_code = "m54b25" |
What is the price of the book that sells the best? | SELECT T2.price FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id ORDER BY T1.qty DESC LIMIT 1 |
Which Finish has a To par of –1, and a Year(s) won of 1955? | SELECT finish FROM table_name_61 WHERE to_par = "–1" AND year_s__won = "1955" |
What is the number of first class team with birthday of 5 december 1970? | SELECT COUNT(first_class_team) FROM table_11950720_4 WHERE date_of_birth = "5 December 1970" |
Which volume id has the maximum weeks on top? | SELECT distinct ( Volume_ID ) from volume where Weeks_On_Top = ( SELECT Weeks_on_Top FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 ) |
What is the last name of the author that has published the most papers? | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1 |
Show the name for regions and the number of storms for each region. | SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id; |
Who are the semifinalists when the tournament is in Cincinnati? | SELECT semifinalists FROM table_name_58 WHERE tournament = "cincinnati" |
How many games had 41 rushes and were than 197 yards? | SELECT COUNT(games) FROM table_name_21 WHERE rushes = 41 AND yards < 197 |
What is the earliest year associated with under 0 wins? | SELECT MIN(year) FROM table_name_55 WHERE wins < 0 |
Tell me the highest, lowest, and average cost of procedures. | SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures |
How many contestants where from mitteldeutschland? | SELECT COUNT(age) FROM table_23495048_2 WHERE represent = "Mitteldeutschland" |
Please delete that information and only show the product name for the product with a product id of 2. | select product_name from Products where product_id = '2' |
List the titles of the art category. | SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'arts' |
What is the maximum number of tropical storms in the year that had exactly 34 deaths? | SELECT MAX(number_of_tropical_storms) FROM table_2930244_4 WHERE deaths = "34" |
Find the first names of the faculty members who participate in Caonoeing and Kayaking. | SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' |
List the time of elimination of the wrestlers with largest days held. | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 |
What is the most common media type? | SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT ( * ) DESC LIMIT 1 |
How many characteristics are there? | SELECT count(*) FROM CHARACTERISTICS |
What is the name of the home time with a 10 tie no? | SELECT home_team FROM table_name_5 WHERE tie_no = "10" |
What is the status if the poverty rate is 11.4%? | SELECT status FROM table_22815568_6 WHERE poverty_rate = "11.4%" |
What are their names? | SELECT T1.name FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' |
In what year were Reid's earnings €4,050 1? | SELECT MIN(year) FROM table_29506171_2 WHERE earnings___€__ = "4,050 1" |
How many times did the incumbent was first elected and then lost re-election anti-masonic gain? | SELECT COUNT(first_elected) FROM table_2668173_4 WHERE result = "Lost re-election Anti-Masonic gain" |
Which surface has a Date of 24–25 apr? | SELECT surface FROM table_name_58 WHERE date = "24–25 apr" |
What week is a bye week? | SELECT week FROM table_name_64 WHERE date = "bye" |
what is the soap opera when the years are 2000–2004, 2005—? | SELECT soap_opera FROM table_name_10 WHERE years = "2000–2004, 2005—" |
in what department is Rumat? | Do you want the name of the department? | Yes! | select dept_name from student where name = "Rumat" |
Who is the opponent of the game with 33,628 folks in attendance? | SELECT opponent FROM table_name_27 WHERE attendance = "33,628" |
What is the number of the truck that has the crew chief Billy Wilburn? | SELECT MAX(_number) FROM table_19908313_2 WHERE crew_chief = "Billy Wilburn" |
On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia? | SELECT date FROM table_name_87 WHERE venue = "sam nujoma stadium, windhoek, namibia" |
How many languages are spoken in Aruba? | SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba" |
What nation has paavo nurmi as the athlete, with a medal count less than 12? | SELECT nation FROM table_name_62 WHERE athlete = "paavo nurmi" AND medal_count < 12 |
How many concerts are there in year 2014 or 2015? | SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.