sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
Which team had a qualifying 1 time of 1:01.342? | SELECT team FROM table_name_40 WHERE qual_1 = "1:01.342" |
what is the type when the regulatory citation is 40 cfr 50.9(a)? | SELECT type FROM table_name_63 WHERE regulatory_citation = "40 cfr 50.9(a)" |
Who is the July playmate with a December playmate Morgan Fox? | SELECT july FROM table_name_58 WHERE december = "morgan fox" |
How many losses did ev bruckberg have when the drawn was more than 1? | SELECT SUM(lost) FROM table_name_42 WHERE name = "ev bruckberg" AND drawn > 1 |
Name the score for game 5 | SELECT score FROM table_27539272_4 WHERE game = 5 |
What is the average rating of songs produced by female artists? | SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" |
How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata? | SELECT SUM(points) FROM table_name_73 WHERE average < 1 AND played > 38 AND team = "gimnasia de la plata" |
Find the author who achieved the highest score in a submission. | SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 |
What is the airing date for a modern drama with more than 21 episodes? | SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21 |
What is the population where the median family income is $48,446 and there are more than 35,343 households? | SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343 |
What circuit had an ensign n180 as the winning car in round 5? | SELECT circuit FROM table_name_79 WHERE winning_car = "ensign n180" AND round = 5 |
What is the area % of EU with 16.4 population in millions? | SELECT area__percentage_of_eu FROM table_name_39 WHERE population_in_millions = 16.4 |
Which Country has a To par of –2, and a Player of jim thorpe? | SELECT country FROM table_name_32 WHERE to_par = "–2" AND player = "jim thorpe" |
What are the names and scores of wines that are made of white color grapes? | SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" |
What is the score when the tie number is 4? | SELECT score FROM table_name_47 WHERE tie_no = "4" |
what is the place where the person is luke donald | SELECT country FROM table_28498999_6 WHERE player = "Luke Donald" |
What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28? | SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28" |
Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)? | SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = "2.4 (2001-2007)" |
how many of them have given ratings higher than 3? | SELECT count ( T2.rID ) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 |
How much did customer 103 pay in total? | SELECT SUM(t.amount) FROM payments t WHERE t.customerNumber = '103' |
Name the Player who has a CFL Team of toronto? | SELECT player FROM table_name_24 WHERE cfl_team = "toronto" |
In what city did oklahoma win the tournament. | SELECT tournament_venue__city_ FROM table_24348134_3 WHERE tournament_winner = "Oklahoma" |
Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4? | SELECT MIN(drawn) FROM table_name_32 WHERE lost = 5 AND points > 4 |
List all the inactive coins and state the last date of its transaction? | SELECT T1.NAME, MAX(T2.DATE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.ID = T2.coin_id WHERE T1.status = 'inactive' ORDER BY T2.DATE DESC LIMIT 1 |
What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw? | SELECT MAX(played) FROM table_name_69 WHERE lost > 2 AND team = "palmeiras" AND drawn < 1 |
Find and list the products that sold below the average quantity. | SELECT DISTINCT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity < ( SELECT AVG(Quantity) FROM Sales ) |
What college is draft pick #327 from? | SELECT college FROM table_name_80 WHERE pick__number = "327" |
Find the names of the customers who have order status both "On Road" and "Shipped". | SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" |
what is the venue when the date is 16 january 1996? | SELECT venue FROM table_name_99 WHERE date = "16 january 1996" |
Hello! How many documents are there total? | SELECT count ( document_name ) FROM documents |
Show me the player id with salary 545000? | SELECT distinct T1.player_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.salary = 545000 |
What is the total access count of documents that are of the most common document type? | SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 |
what are the locations that joined in 2008 | SELECT location FROM table_11658094_1 WHERE joined = "2008" |
Name the most world rank for asian rank being 31 | SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31 |
Who is the captain for the manufacturer Pony, and the manager Harry Redknapp? | SELECT captain FROM table_name_59 WHERE kit_manufacturer = "pony" AND manager = "harry redknapp" |
Provide the release date and language of the most popular movie. | SELECT T1.release_date, T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id ORDER BY T1.popularity DESC LIMIT 1 |
What are the themes and locations of parties? | SELECT Party_Theme , LOCATION FROM party |
what is the product description of the product id 3 ? | SELECT product_description FROM Products_for_Hire where product_id = 3 |
What was the winning score on Aug 28, 1983? | SELECT winning_score FROM table_name_89 WHERE date = "aug 28, 1983" |
How many addresses are from the Philippines? | SELECT COUNT(T2.country_id) FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Philippines' |
Provide any five games and release year under the sports genre. | SELECT T3.game_name, T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' LIMIT 5 |
Show all member names and registered branch names sorted by register year. | SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year |
Show the distinct leader names of colleges associated with members from country "Canada". | SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada" |
Who was the home team when the opposition was Buller? | SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller" |
What is the hometown of Bubba Starling? | SELECT hometown FROM table_11677100_17 WHERE player = "Bubba Starling" |
Please list the names of all the climbers. | SELECT Name FROM climber |
What event was the competition World Junior Championships in 2010? | SELECT event FROM table_name_16 WHERE competition = "world junior championships" AND year = 2010 |
Please show the most common occupation of players. | SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1 |
What are the different film Directors? | SELECT DISTINCT Director FROM film |
What position did pick 14 play? | SELECT position FROM table_name_72 WHERE pick = 14 |
Lowest larger than 288, and a Team of east stirlingshire has what lowest average? | SELECT MIN(average) FROM table_name_61 WHERE lowest > 288 AND team = "east stirlingshire" |
What is Chesterfield Spires average? | SELECT average FROM table_21991074_1 WHERE club = "Chesterfield Spires" |
State the name of all territories in Northern region. | SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern' |
How many Drawn did Coach Francis Cummins have with less than 4 Lost? | SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = "francis cummins" |
What was the attendance at the game where the opponent was the denver broncos? | SELECT attendance FROM table_name_85 WHERE opponent = "denver broncos" |
how many directors of the films never presented in china? | SELECT count ( director ) FROM film WHERE film_id NOT IN ( SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China' ) |
Show the countries that have managers of age above 50 or below 46? | SELECT Country FROM manager WHERE Age > 50 OR Age < 46 |
The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time? | SELECT time FROM table_name_79 WHERE rank > 3 AND notes = "fd" AND athlete = "shin yeong-eun" |
What percentage of papers were preprinted after the year 2000? | SELECT CAST(SUM(CASE WHEN Year > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Id) FROM Paper |
What year had a score of 0.586? | SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586" |
What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010? | SELECT position FROM table_name_54 WHERE school = "pacific lutheran university" AND player = "greg fredlund" AND year > 2010 |
How much is the size of Browser 4G and how many users have a pretty positive favorability on it? | SELECT T1.Size, COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Browser 4G' AND T2.Sentiment_Polarity >= 0.5 |
Show all calendar dates and day Numbers. | SELECT calendar_date , day_Number FROM Ref_calendar |
Name the title of jean-pierre jeunet | SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet" |
what is the duration of the longest song grouped by genre? | SELECT max ( T1.duration ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is |
what is the name of the episode whose premiere was in march 2, 1997? | SELECT title FROM table_2226817_12 WHERE original_air_date = "March 2, 1997" |
Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? | SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong" |
What are December 10's high points? | SELECT high_points FROM table_27712451_6 WHERE date = "December 10" |
What horse was shown by with Britta Näpel and got less than 71.909? | SELECT horse FROM table_name_61 WHERE athlete = "britta näpel" AND result < 71.909 |
What was the result of the election featuring james a. gallivan (d) unopposed? | SELECT result FROM table_1342379_20 WHERE candidates = "James A. Gallivan (D) Unopposed" |
What is the average of all domestic passengers? | SELECT avg ( Domestic_Passengers ) FROM airport |
Who is the youngest player and which city did he/she come from? | SELECT T3.City_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id INNER JOIN City AS T3 ON T2.Country_Id = T3.Country_Id ORDER BY T1.DOB LIMIT 1 |
What was the result of the bout that led to a 4-4 record? | SELECT res FROM table_name_1 WHERE record = "4-4" |
What is the phone number of the performer Ashley? | SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley" |
List down the cities belongs to the country that has surface area greater than 7000000. | SELECT T2.Name, T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea > 7000000 |
What is the nickname of staff with first name as Janessa and last name as Sawayn? | SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; |
How many stolen ends were there when the locale was Sweden? | SELECT stolen_ends FROM table_1543845_63 WHERE locale = Sweden |
how many customers cards there | SELECT count ( * ) from Customers_Cards |
List the advisor IDs for students with eighth year of program and position status in faculty of those professors. | SELECT T1.p_id_dummy, T2.hasPosition FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_8' |
What are the dimensions of those products? | SELECT product,dimensions FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 |
Which venue hosted a tournament in 1965? | SELECT venue FROM table_name_78 WHERE year = 1965 |
What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people. | SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2; |
What is the margin when periyakulam is the constituency? | SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam" |
What are the ids of the problems which are reported after 1978-06-26? | SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26" |
What is the grid of car no. 3? | SELECT grid FROM table_name_17 WHERE car_no = "3" |
What is the sum of the value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0? | SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 0 |
What is Dayana Robel policy id? | SELECT Policy_ID FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = "Dayana Robel" |
Name the most joined for molloy college | SELECT MAX(joined) FROM table_1969577_1 WHERE institution = "Molloy College" |
When was the start of the construction of the unit that's been in commercial operation since 04.03.1987? | SELECT construction_start FROM table_12983929_1 WHERE commercial_operation = "04.03.1987" |
What is the distance of the aircraft with the name Boeing 737-800? | SELECT distance FROM Aircraft where name = 'Boeing 737-800' |
What party does the area with the zip code 91701 belong to? | SELECT T1.party FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T3.zip_code = 91701 GROUP BY T1.party |
In what venue was the hosted away team Essendon? | SELECT venue FROM table_name_59 WHERE away_team = "essendon" |
What is the top speed of the model 1.8 20v t? | SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t" |
Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel? | SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel" |
Show all information on that airport | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 |
What is the frequency of 101.5 News FM? | SELECT frequency FROM table_19215259_1 WHERE branding = "101.5 News FM" |
What's the total grid for someone with a time/retire of +44.831 | SELECT COUNT(grid) FROM table_name_26 WHERE time_retired = "+44.831" |
What are the names of enzymes whose product is not 'Heme'? | SELECT name FROM enzyme WHERE product != 'Heme' |
What is the Position, when Player is "Magnus Nygren"? | SELECT position FROM table_name_53 WHERE player = "magnus nygren" |
What is the release date by Editions EG in the Netherlands? | SELECT AVG(release_date) FROM table_name_46 WHERE music_label = "editions eg" AND country = "netherlands" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.