sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What language does Raj Kamal speak? | SELECT language FROM table_name_62 WHERE music_director = "raj kamal" |
What is the smallest ERP for allentown, pennsylvania? | SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania" |
What is the average quantity of stocks? | SELECT avg(Quantity) FROM stock |
How old is the student with student id 1008? | SELECT Age FROM student WHERE StuID = 1008 |
Find the types of documents with more than 4 documents. | SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4 |
How many types of "HL Touring Frames" are there? | SELECT COUNT(ProductID) FROM Products WHERE Name LIKE '%HL Touring Frame%' |
List down the advised student IDs and IDs of employing professor in faculty. | SELECT T1.p_id, T2.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id_dummy = T2.p_id WHERE hasPosition = 'Faculty_eme' |
Which club participated with a record of 45 tries against? | SELECT club FROM table_name_91 WHERE tries_against = "45" |
What season number in the season has production code 210? | SELECT MIN(no_in_season) FROM table_26448179_3 WHERE production_code = "210" |
What content is provided by the television service ewtn? | SELECT content FROM table_name_1 WHERE television_service = "ewtn" |
List all product names that are high in quality. Please also state its selling price. | SELECT Name, ListPrice FROM Product WHERE Class = 'H' |
Name the date for sacramento | SELECT date FROM table_15780049_8 WHERE team = "Sacramento" |
A total larger than 302 and playoffs of 35 also list the total of regular seasons as what? | SELECT SUM(regular_season) FROM table_name_41 WHERE playoffs = 35 AND total > 302 |
How many more devices are there of the brand vivo than of the brand LG? | SELECT SUM(IIF(phone_brand = 'vivo', 1, 0)) - SUM(IIF(phone_brand = 'LG', 1, 0)) AS num FROM phone_brand_device_model2 |
What are the highest points for Justin Lofton when his top 10 is lower than 5? | SELECT MAX(points) FROM table_name_14 WHERE driver = "justin lofton" AND top_10 < 5 |
What city had the chameleon oil pattern at the Go RV'ing Classic? | SELECT city FROM table_name_21 WHERE oil_pattern = "chameleon" AND event = "go rv'ing classic" |
What is KK - 5 if KK - 1 is 1,067? | SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067" |
what is the name when the type is freighter, nationality is united kingdom on 3 may 1940? | SELECT name FROM table_name_61 WHERE type = "freighter" AND nationality = "united kingdom" AND date = "3 may 1940" |
What is week 4 if week 3 is 35.40? | SELECT week_4 FROM table_name_26 WHERE week_3 = "35.40" |
Which the highest Bronze of czech republic with a Total smaller than 4? | SELECT MAX(bronze) FROM table_name_63 WHERE nation = "czech republic" AND total < 4 |
What is the win record where the pa record is 62? | SELECT w FROM table_29565673_2 WHERE pa = 62 |
what is the highest price? | SELECT MAX ( Price ) FROM schedule |
What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets? | SELECT AVG(sales__billion_) AS $_ FROM table_name_65 WHERE headquarters = "france" AND assets__billion_$_ > 2 OFFSET 539.1 |
What Venue on October 27, 2005 had a Score of 5-0? | SELECT venue FROM table_name_65 WHERE score = "5-0" AND date = "october 27, 2005" |
What's the total of Rank for the County of Galway and has a Total that's larger than 13? | SELECT SUM(rank) FROM table_name_60 WHERE county = "galway" AND total > 13 |
Find the id and last name of the student that has the most behavior incidents? | SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 |
What was the name of the Event with a time of 2:19? | SELECT event FROM table_name_8 WHERE time = "2:19" |
What team was the away team when they played at lake oval? | SELECT away_team AS score FROM table_name_84 WHERE venue = "lake oval" |
Tell me the D 41 and R 51 of r 11 | SELECT d_41 FROM table_name_33 WHERE r_51 = "r 11" |
How much is the discount applied to the order with the highest unit price? | SELECT `Discount Applied` FROM `Sales Orders` WHERE REPLACE(`Unit Price`, ',', '') = ( SELECT REPLACE(`Unit Price`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1 |
Find the total and average amount of settlements. | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements |
What was the score of the match played on hard with a person ranked 10? | SELECT score FROM table_name_70 WHERE surface = "hard" AND rank = 10 |
What are the interfaces of those products? | SELECT product,interface FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 |
How many games were played in 1907? | SELECT count ( * ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 |
What are the market id of china? | SELECT market_id FROM market where country = "China" |
What division did the team coached by the winner of the 1977 NBA Coach of the Year award play in in 1976? | SELECT DISTINCT T3.divID FROM awards_coaches AS T1 INNER JOIN coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T2.tmID = T3.tmID WHERE T1.year = 1977 AND T1.award = 'NBA Coach of the Year' AND T3.year = 1976 |
On 11/3/2013, which stations are often empty? Indicate the names of the stations. | SELECT DISTINCT T1.name FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.bikes_available = 0 AND T2.time LIKE '2013/11/03%' |
What is the most expensive product price? | select max ( Product_Price ) from Products |
Which store has the most staff? | Do you want to get the shop ID which has the most staff? | yes, please | SELECT Shop_ID from shop order by Num_of_staff desc limit 1 |
Who is the captain of the team that has a kit manufacturer of Fox Leisure? | SELECT captain FROM table_name_30 WHERE kit_manufacturer = "fox leisure" |
Show me the name of tracks in the Rock genre. | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" |
From the cases where the subject are male, list the case number and the location and subject status. | SELECT T1.case_number, T1.location, T1.subject_statuses FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'M' |
List the site of institution within the student count of 500 to 1000 that has the recent year of data release. | SELECT DISTINCT T1.site FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.student_count BETWEEN 500 AND 1000 AND T2.year = ( SELECT MAX(T2.year) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid ) |
What was the result for the cirtcuit where the LMPC winning team was #89 Intersport Racing? | SELECT results FROM table_27758427_2 WHERE lmpc_winning_team = "#89 Intersport Racing" |
Find the number of airports whose name contain the word 'International'. | SELECT count(*) FROM airports WHERE name LIKE '%International%' |
Which Laps has a Year of 2007? | SELECT AVG(laps) FROM table_name_80 WHERE year = 2007 |
How many values of top 10 for 5th position? | SELECT COUNT(top_10) FROM table_2597876_2 WHERE position = "5th" |
Okay, could you just give me the account names listed under Meaghan first? | select account_name from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id WHERE customer_first_name = 'Meaghan' |
What was the date of the game at MCG? | SELECT date FROM table_name_85 WHERE venue = "mcg" |
List the most common result of the musicals. | SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 |
What was the highest pick number for the Hamilton tiger-cats? | SELECT MAX(pick__number) FROM table_name_13 WHERE cfl_team = "hamilton tiger-cats" |
Which Team has a Year larger than 2010? | SELECT team FROM table_name_47 WHERE year > 2010 |
Show the citizenship shared by singers with birth year before 1945 and after 1955. | SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 |
Which country has the highest value of Merchandise imports by the reporting economy (current US$)? | SELECT CountryName FROM Indicators WHERE IndicatorName = 'Merchandise imports by the reporting economy (current US$)' ORDER BY Value DESC LIMIT 1 |
Which Reason for termination has Appointed by of eisenhower category:articles with hcards? | SELECT reason_for_termination FROM table_name_14 WHERE appointed_by = "eisenhower category:articles with hcards" |
Can you tell me the id of the product with most complaints? | SELECT product_id FROM Complaints GROUP BY product_id ORDER BY COUNT ( * ) DESC LIMIT 1 |
List all staff in the Shipping and Receiving department who are hired in 2009. | SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID INNER JOIN Department AS T4 ON T3.DepartmentID = T4.DepartmentID WHERE STRFTIME('%Y', T2.HireDate) = '2009' AND T4.Name = 'Shipping and Receiving' |
What is the number of losses when there were less than 4 draws, and points were 9? | SELECT losses FROM table_name_36 WHERE draws < 4 AND points = 9 |
Who directed the episode with production code ca303? | SELECT directed_by FROM table_25740548_4 WHERE production_code = "CA303" |
What is the number of seats in congress when the candidates per party is 6? | SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE candidates_per_party = 6 |
Wonderful, can you remove that information and instead display every student id that has a dorm id of 160? | SELECT T1.stuid FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid = 160 |
How many inspections were done under the display of inspection report summary category? | SELECT COUNT(T2.inspection_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Display of Inspection Report Summary' |
Name the scores for michael buerk and russell howard | SELECT scores FROM table_23575917_2 WHERE lees_team = "Michael Buerk and Russell Howard" |
What is the location of the institution nicknamed Lions? | SELECT location FROM table_2562113_1 WHERE nickname = "Lions" |
For the planes which has the hightest total price, how much it exceeds the average? | SELECT MAX(quantityOrdered * priceEach) - AVG(priceEach) FROM orderdetails WHERE productCode IN ( SELECT productCode FROM products WHERE productLine = 'Planes' ) |
Find the name, age, and job title of persons who are friends with Alice for the longest years. | SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice') |
What is the Outcome of the match with a Score of 6–1, 6–1? | SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1" |
List the products that were ordered by Anne McFarland from the Western store. | SELECT DISTINCT T3.`Product Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Anne McFarland' |
Can you please show me the maximum damage for all storms with maximum speed higher than 1000? | SELECT max ( damage_millions_USD ) FROM storm WHERE max_speed > 1000 |
What are the ids of students who both have friends and are liked? | SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes |
Who is the opponent when the attendance is 57,331? | SELECT opponent FROM table_name_41 WHERE attendance = "57,331" |
What are the full name (first and last name) and salary for all employees who does not have any value for commission? | SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null" |
Show the themes of parties and the names of the party hosts. | SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID |
what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119? | SELECT AVG(place) FROM table_name_99 WHERE artist = "juliana pasha & luiz ejlli" AND points > 119 |
Name the parent unit for josef priller | SELECT parent_unit FROM table_28342423_1 WHERE commanding_officer = "Josef Priller" |
What campuses are located in Chico? | SELECT campus FROM campuses WHERE LOCATION = "Chico" |
What is the title which has character named "Froth"? | SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Froth' |
Which Home team has a Venue of victoria park? | SELECT home_team FROM table_name_27 WHERE venue = "victoria park" |
Return the id and full name of the customer with the most accounts. | SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 |
What is the region 1 release that has july 20, 2009 as the region 2? | SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" |
What is the id of the reviewer whose name includes the word "Mike"? | SELECT rID FROM Reviewer WHERE name LIKE "%Mike%" |
What are flight numbers of flights arriving at City "Aberdeen"? | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" |
What is the average cost of root beers purchased for more than 2 dollars and sold in bottles? | SELECT AVG(T2.PurchasePrice) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T1.ContainerType = 'Bottle' AND T2.PurchasePrice > 2 |
Between 2006 and 2007, which year ID had the greater number in elite user? | SELECT year_id FROM Elite WHERE year_id IN (2006, 2007) GROUP BY year_id ORDER BY COUNT(user_id) DESC LIMIT 1 |
What is the # listed when the score is 70-69-69-70=278? | SELECT _number FROM table_28498999_5 WHERE score = 70 - 69 - 69 - 70 = 278 |
What record has a Score of 9–6? | SELECT record FROM table_name_15 WHERE score = "9–6" |
List the categories of active businesses in Glendale, AZ. | SELECT DISTINCT T3.category_name FROM Business_Categories AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T1.category_id = T3.category_id WHERE T2.active = 'true' AND T2.state = 'AZ' AND T2.city = 'Glendale' |
What is the language for translators ritah meltser and amatsyah porat? | SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat" |
List the name of tracks belongs to genre Rock or media type is MPEG audio file. | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file"; |
What is the average round of player Sammy Morris? | SELECT AVG(round) FROM table_name_13 WHERE player = "sammy morris" |
Who are all of the candidates in the election featuring james r. domengeaux? | SELECT candidates FROM table_1342256_18 WHERE incumbent = "James R. Domengeaux" |
can you show me a list of password? | SELECT password FROM students |
Return all detention summaries. | SELECT detention_summary FROM Detention |
What is the number of makers of care in France? | SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'; |
What home team has 10 as the tie no? | SELECT home_team FROM table_name_14 WHERE tie_no = "10" |
Who was the successor for the Kentucky 2nd district? | SELECT successor FROM table_224794_3 WHERE district = "Kentucky 2nd" |
What were the original teams for The Biggest Loser (Season 1)? | SELECT original_teams FROM table_name_77 WHERE name = "the biggest loser (season 1)" |
What medal was won in the men's 5000 m event? | SELECT medal FROM table_name_53 WHERE event = "men's 5000 m" |
What was the worldwide gross for the film directed by joe pytka? | SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka" |
What is Runner(s)-Up when Margin of Victory is 6 Strokes? | SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = "6 strokes" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.