sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the date of the event with a 1:54.00 time? | SELECT date FROM table_name_25 WHERE time = "1:54.00" |
What is the earliest game played at the TD Waterhouse Centre? | SELECT MIN(game) FROM table_name_99 WHERE location = "td waterhouse centre" |
Where does team #55/#83 robby gordon motorsports rank in the top 10? | SELECT MAX(top_10) FROM table_1507423_5 WHERE team_s_ = "#55/#83 Robby Gordon Motorsports" |
What is the last name of the youngest student? | SELECT LName FROM Student WHERE age = (SELECT MIN(age) FROM Student) |
Show the names of authors from college "Florida" or "Temple" | SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple" |
How many appellations produce wine in St. Helena? | SELECT COUNT ( * ) FROM wine WHERE Appelation = "St. Helena" |
What the total of Week with attendance of 53,147 | SELECT SUM(week) FROM table_name_70 WHERE attendance = "53,147" |
What is the denomination of the school the most players belong to? | SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1 |
What is the call sign for a class of A? | SELECT call_sign FROM table_name_69 WHERE class = "a" |
Find the city where the most customers live. | SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 |
What is the most recent year? | SELECT MAX(year) FROM table_13169136_1 |
Which school has a roll larger than 26 and is located in Fairfield? | SELECT name FROM table_name_5 WHERE roll > 26 AND area = "fairfield" |
What was the away team score at Hawthorn's home game? | SELECT away_team AS score FROM table_name_28 WHERE home_team = "hawthorn" |
List the episode ID and title of episode where casting was credited to Bonita Pietila. | SELECT T1.episode_id, T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.credited = 'true' AND T2.person = 'Bonita Pietila' AND T2.role = 'casting'; |
What is the first name and country code of the oldest player? | SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1 |
What is the 2012 with A in 2009 and 2r in 2010? | SELECT 2012 FROM table_name_96 WHERE 2009 = "a" AND 2010 = "2r" |
What was the score of the game with a record of 7–10–3–1? | SELECT score FROM table_name_2 WHERE record = "7–10–3–1" |
When first woman eva is the comment what is the end -utc? | SELECT end___utc FROM table_245801_2 WHERE comments = "First woman EVA" |
Please list the credit card numbers of all the employees who have left the Finance Department. | SELECT T3.CardNumber FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN CreditCard AS T3 ON T1.ModifiedDate = T3.ModifiedDate INNER JOIN PersonCreditCard AS T4 ON T3.CreditCardID = T4.CreditCardID WHERE T2.Name = 'Finance' AND T1.EndDate IS NOT NULL |
What position does the player from arkansas play? | SELECT pos FROM table_name_57 WHERE school_country = "arkansas" |
Excellent! Can you tell me the district name associated with the largest population? | SELECT District_name FROM district where City_Population = ( select max ( City_Population ) from district ) |
What is the Pick # of the Player from Southern MIssissippi? | SELECT COUNT(pick) FROM table_name_98 WHERE school = "southern mississippi" |
How many addresses are there in Woodridge city? | SELECT COUNT(T1.address_id) FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city = 'Woodridge' |
What is the ad frequency for the show named Health Matters? | SELECT ad_freq FROM table_name_58 WHERE show_name = "health matters" |
What is the mission that has ambassador of local position, and a resident country of democratic republic of congo? | SELECT mission FROM table_name_35 WHERE local_position = "ambassador" AND resident_country = "democratic republic of congo" |
What is the count of enzymes without any interactions? | SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); |
What is Tina Sachdev's position? | SELECT position FROM table_name_60 WHERE co_contestant__yaar_vs_pyaar_ = "tina sachdev" |
What was the population in 2011 of the settlement with the cyrillic name of ватин? | SELECT MAX(population__2011_) FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин" |
What is the home team with scarborough as the away team? | SELECT home_team FROM table_name_50 WHERE away_team = "scarborough" |
From 1950 to 1970, what is the maximum point of players whose teams were ranked 1? | SELECT MAX(T2.points) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 1950 AND 1970 AND T1.rank = 1 |
What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households? | SELECT MIN(female) FROM table_name_66 WHERE district = "hiroo 1-chōme" AND number_of_households > 1 OFFSET 666 |
What are the unique names of races that held after 2000 and the circuits were in Spain? | SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2000 |
What is the maximum and the minimum tonnage for a cargo ship? | SELECT max ( Tonnage ) ,min ( Tonnage ) FROM ship WHERE Type = 'Cargo ship' |
Name the 3 dart average for michael van gerwen | SELECT 3 AS _dart_average FROM table_18317531_1 WHERE player = "Michael van Gerwen" |
What are the numbers for the order number 713096-713119? | SELECT numbers FROM table_2351952_1 WHERE order_number = "713096-713119" |
Which type has a quantity of 11? | SELECT type FROM table_name_29 WHERE quantity = 11 |
What is the match report from the game played on 28 february 2009? | SELECT match_report FROM table_name_23 WHERE date = "28 february 2009" |
What about the youngest captain? | SELECT name FROM captain order by age asc limit 1 |
What is the seating capacity for Chicagoland Speedway? | SELECT Seating FROM track where Name = 'Chicagoland Speedway' |
What is every record for game 11? | SELECT record FROM table_23248940_6 WHERE game = 11 |
What is the first name and the last name of the customer who made the earliest rental? | SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1 |
What are the character names in paragraph 3? | SELECT DISTINCT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 3 |
What team uses a Cosworth DFV V8 engine and DN9 Chassis? | SELECT entrant FROM table_name_68 WHERE engine = "cosworth dfv v8" AND chassis = "dn9" |
What is the quantity preserved for the serial number of mallet and simple articulated locomotives? | SELECT quantity_preserved FROM table_name_19 WHERE serial_numbers = "mallet and simple articulated locomotives" |
List all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the list. | SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number < 50 AND T1.user_subscriber = 1 |
In what season did he compete in the Grand Prix in Kuala Lumpur? | SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur" |
Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? | SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]" |
What game is the first with the Pittsburgh Penguins the opponent? | SELECT MIN(game) FROM table_name_49 WHERE opponent = "pittsburgh penguins" |
When is the modified date of the phone number "1500 555-0143"? | SELECT ModifiedDate FROM PersonPhone WHERE PhoneNumber = '1 (11) 500 555-0143' |
How far is the olbia to sassari route? | SELECT distance FROM table_name_99 WHERE course = "olbia to sassari" |
What is the zip code in which the average mean sea level pressure is the lowest? | SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1 |
What is the first name of the students who are in age 20 to 25 and living in PHL city? | SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 |
What are the advisors | SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2 |
Nigeria competed on July2, 1999. | SELECT date FROM table_1231316_5 WHERE nation = "Nigeria" |
Who was the opponent on November 26, 1989? | SELECT opponent FROM table_name_86 WHERE date = "november 26, 1989" |
Can I see a list of students who's first name contains letter "a"? | SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' |
Which apartment has the most bedrooms? | SELECT * FROM Apartments order by bedroom_count desc limit 1 |
Return the apartment number and the number of rooms for each apartment. | SELECT apt_number , room_count FROM Apartments |
What is the label that has the most albums? | SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1 |
When Symbian/Series 40 is 0.40%, what is the percentage of "other"? | SELECT other FROM table_11381701_3 WHERE symbian___series_40 = "0.40%" |
What is the mean road number when Moe Lemay is the player? | SELECT AVG(rd__number) FROM table_name_64 WHERE player = "moe lemay" |
On what date was the Catalog FT 507? | SELECT date FROM table_name_93 WHERE catalog = "ft 507" |
Name the tournament for 2010 of grand slam tournaments | SELECT tournament FROM table_name_93 WHERE 2010 = "grand slam tournaments" |
WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING? | SELECT social_software FROM table_name_18 WHERE discussion = "no" AND time_tracking = "no" AND charting = "no" |
What schools were founded after 1900? | SELECT school FROM school WHERE Founded > 1900 |
What was the average number of points with bonus pts less than 31 with the rider dennis gavros? | SELECT AVG(total_points) FROM table_name_29 WHERE rider = "dennis gavros" AND bonus_pts < 31 |
What are all role codes? | SELECT role_code FROM ROLES; |
When was the private/baptist school founded? | SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist" |
What away is there for the q3 round? | SELECT away FROM table_name_68 WHERE round = "q3" |
If the area is 34.73, what is the census ranking? | SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = "34.73" |
which Construction is named heng-hai? | SELECT construction FROM table_name_69 WHERE name__wade_giles_ = "heng-hai" |
What is the name of the venue that was used before 1991? | SELECT venue FROM table_name_23 WHERE year < 1991 |
Which major has the most students? | SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1 |
What is the Date, when the home team is the NY Rangers? | SELECT date FROM table_name_22 WHERE home = "ny rangers" |
Which department offers the most credits all together? | SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1 |
List the names and menu page IDs of the dishes that first appeared in 1861. | SELECT T2.name, T1.dish_id FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.first_appeared = 1861 |
What is the amount of fog where the rain is 1 109? | SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = "1 109" |
How many cities are in Australia? | SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' |
Name the latitude of laima tessera | SELECT latitude FROM table_16799784_2 WHERE name = "Laima Tessera" |
What is the Name of the SS11 Stage? | SELECT name FROM table_name_3 WHERE stage = "ss11" |
Count the number of bank branches. | SELECT count(*) FROM bank |
What is the average price for flights from Los Angeles to Washington D.C. | SELECT avg ( price ) FROM Flight WHERE origin = "Los Angeles" AND destination = "Washington D.C." |
name the most series number for season 22 | SELECT MAX(series__number) FROM table_25800134_18 WHERE season__number = 22 |
Find the accreditation level that more than 3 phones use. | SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count ( * ) > 3 |
Which product is the most expensive? | SELECT ProductName FROM Products WHERE UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) |
What is the legislative district's office address where 010XX W LAKE ST is located? | SELECT T1.ward_office_address FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.block = '010XX W LAKE ST' GROUP BY T1.ward_office_address |
What is the Netflix episode for series episode 15-01? | SELECT netflix FROM table_name_64 WHERE series_ep = "15-01" |
What customers have a policy? | SELECT * FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id |
What team has fewer than 9 wins and less than 1593 against? | SELECT lexton_plains FROM table_name_18 WHERE wins < 9 AND against < 1593 |
What was the aggregate score for Montauban? | SELECT aggregate_score FROM table_27986200_3 WHERE proceed_to_quarter_final = "Montauban" |
What is the proportion of the papers that have the keyword "cancer"? Please provide a list of authors and their affiliations. | SELECT CAST(SUM(CASE WHEN T1.Keyword = 'cancer' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id), T2.Name, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId |
Please list the job titles of the employees who has a document that has been approved. | SELECT DISTINCT T2.BusinessEntityID, T2.JobTitle FROM Document AS T1 INNER JOIN Employee AS T2 ON T1.Owner = T2.BusinessEntityID WHERE T1.Status = 2 |
Which team has the high points of Raymond Felton (26)? | SELECT team FROM table_name_30 WHERE high_points = "raymond felton (26)" |
What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" train? | SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Guruvayur Express" |
What are the product id and product type of the cheapest product? | SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1 |
Show me the team_id with attendance 3000? | SELECT team_id FROM home_game where attendance = 3000 |
How many times is runners-up less than 0? | SELECT COUNT(winners) FROM table_name_11 WHERE runners_up < 0 |
what is the county name zip code D02? | SELECT county_name from county where zip_code = "D02" |
Which public college has a nickname of The Grenadiers? | SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers" |
What is the original name of the film that used the title Olympics 40 in nomination? | SELECT original_name FROM table_name_91 WHERE film_title_used_in_nomination = "olympics 40" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.