sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the average difference in the y coordinate of 2 object samples with the relation "parked on" in image no.1? | SELECT CAST(SUM(T3.Y) AS REAL) / COUNT(CASE WHEN T1.PRED_CLASS = 'parked on' THEN 1 ELSE NULL END) FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.OBJ1_SAMPLE_ID = T3.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID |
Name the indanapolis concerts for dr. alexandre manette | SELECT indianapolis_concerts FROM table_17085724_1 WHERE character = "Dr. Alexandre Manette" |
Which Ofsted has a School of marple hall school, and a Capacity larger than 1711? | SELECT MIN(ofsted) FROM table_name_63 WHERE school = "marple hall school" AND capacity > 1711 |
Can you find me the names of all the swimmers who have both "win" and "loss" results in the record? | SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' |
What are the themes of competitions that have corresponding host cities with more than 1000 residents? | SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000 |
What roles have not been credited at the end of the episodes? | SELECT DISTINCT role FROM Credit WHERE credited = 'false' |
Which event was in Tokyo, Japan and had an opponent of rumina sato? | SELECT event FROM table_name_38 WHERE location = "tokyo, japan" AND opponent = "rumina sato" |
What is the example of the Early Modern English ( [x] → /f/) /ɔf/? | SELECT example FROM table_28177800_5 WHERE early_modern_english = "( [x] → /f/) /ɔf/" |
On the menu with the most dishes, how many dishes were there on its second page? | SELECT COUNT(T1.dish_id) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T2.page_number = 2 GROUP BY T3.name ORDER BY T3.dish_count DESC LIMIT 1 |
How many orders were shipped by "Speedy Express"? | SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' |
What is the quarterfinal week for Austin Anderson? | SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE name_name_of_act = "Austin Anderson" |
What are their names? | SELECT name FROM member WHERE membership_card = "White" |
what is the number of proteins for each institution? | SELECT T1.institution , count ( * ) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id |
WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED? | SELECT away_team FROM table_name_44 WHERE home_team = "leeds united" |
Show all information on the airport that has the largest number of international passengers. | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 |
What is the average number of attendance at home games for each year? | SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR |
display the employee ID and job name for all those jobs in department 80. | SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80 |
What is the played number when the points against is 179? | SELECT played FROM table_name_78 WHERE points_against = "179" |
Please list the employees who have more than 20 vacations hours and wish to receive e-mail promotions. | SELECT T1.BusinessEntityID FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 1 AND T1.VacationHours > 20 |
What average silver has belarus as the nation, with a total less than 1? | SELECT AVG(silver) FROM table_name_23 WHERE nation = "belarus" AND total < 1 |
Only show the first result. | SELECT patient FROM undergoes ORDER BY dateundergoes DESC limit 1 |
Name the average total for years won of 1975 | SELECT AVG(total) FROM table_name_47 WHERE year_s__won = "1975" |
Which translation had a unit of Uncia? | SELECT translation FROM table_name_10 WHERE unit = "uncia" |
What is the format for the MCA label? | SELECT format FROM table_name_40 WHERE label = "mca" |
What was the result for round r3? | SELECT result FROM table_name_10 WHERE round = "r3" |
Find the name of the teacher who teaches the largest number of students. | SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count ( * ) DESC LIMIT 1 |
Show the names of pilots from team "Bradley" or "Fordham". | SELECT Pilot_name FROM pilot WHERE Team = "Bradley" OR Team = "Fordham" |
What were the total 2012 births when the 2012 deaths were 163? | SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163 |
What is the city of license that has lp as the class? | SELECT city_of_license FROM table_name_40 WHERE class = "lp" |
What is the customer's address for the shipment with ship ID 1117? | SELECT T2.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1117' |
Which couple participated in the Paso Doble style and were safe? | SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble" |
How many students have more than one credit? | SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING T1.tot_cred > 1 |
Name the To par for leland gibson | SELECT to_par FROM table_name_59 WHERE player = "leland gibson" |
What are the descriptions for each color? | SELECT color_description FROM ref_colors |
How many courses are there? | SELECT count ( * ) FROM course |
Please list all the critics made by the user rating the movie "A Way of Life". | SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' |
What are the names of the dishes in the menu sponsored by The Society of Cumberland that was created for the 19th reunion at Grand Pacific Hotel in Chicago, Illinois? | SELECT T4.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id INNER JOIN Dish AS T4 ON T3.dish_id = T4.id WHERE T1.sponsor = 'THE SOCIETY OF THE CUMBERLAND' AND T1.event = '19NTH REUNION' AND T1.place = 'GRAND PACIFIC HOTEL,CHICAGO,ILL' |
On average, how many scenes are there in each of the comedy works written by Shakespeare? | SELECT CAST(SUM(T2.Scene) AS REAL) / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'Comedy' |
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3? | SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2 |
Great, can you show me all wines that have a higher price than the one currently in the table? | SELECT * FROM WINE WHERE Price > ( SELECT max ( Price ) FROM WINE WHERE YEAR = 2006 ) |
Count the number of accounts. | SELECT count(*) FROM Accounts |
Show different colleges along with the number of authors of submission from each college. | SELECT College , COUNT(*) FROM submission GROUP BY College |
What is the record number of the game where Guardado lost? | SELECT record FROM table_name_9 WHERE loss = "guardado" |
Which city is the address of the store named "FJA Filming" located in? | SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = "FJA Filming" |
What is Kaitlin's last name? | Do you mean the last name of the staff whose first name is Kaitlin? | Yes | SELECT last_name from staff where first_name = 'Kaitlin' |
How many papers are written by authors from the institution "University of Pennsylvania"? | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania" |
What is all the information on the airport with the largest number of international passengers? | SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 |
Find the physician who was trained in the most expensive procedure? | SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 |
Which Nation has the USA-18 sail? | SELECT nation FROM table_name_91 WHERE sail = "usa-18" |
What are the phone and email for customer Harold? | SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = "Harold" |
What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes? | SELECT MIN(gold) FROM table_name_45 WHERE silver < 23 AND rank > 5 AND bronze = 6 |
Who won mixed doubles in the 2002 season? | SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 |
What is Ivan Ciernik's average points with less than 11 goals? | SELECT AVG(points) FROM table_name_29 WHERE player = "ivan ciernik" AND goals < 11 |
How many questions in 2014's survey had more than 200 answers? | SELECT COUNT(QuestionID) FROM Answer WHERE SurveyID LIKE 2014 GROUP BY QuestionID ORDER BY COUNT(QuestionID) > 200 LIMIT 1 |
State the number of public magnet schools in New York Manhattan. | SELECT COUNT(schoolid) FROM projects WHERE school_county = 'New York (Manhattan)' AND school_magnet = 't' |
What is the Crankarm product's net profit? | SELECT T2.LastReceiptCost - T2.StandardPrice FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE '%Crankarm%' |
Name the record for 9-4 score | SELECT record FROM table_name_61 WHERE score = "9-4" |
Among the lists with at least one follower, how many were created by user who was subscriber when created the list? | SELECT COUNT(T1.list_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers >= 1 AND T1.user_subscriber = 1 |
What is recorded as the lowest Round for the Player Jim Thompson? | SELECT MIN(round) FROM table_name_26 WHERE player = "jim thompson" |
Who was the opponent on November 15, 1981? | SELECT opponent FROM table_name_70 WHERE date = "november 15, 1981" |
How many customers are there in the customer type with the most customers? | SELECT COUNT(*) FROM customers GROUP BY customer_type_code ORDER BY COUNT(*) DESC LIMIT 1 |
Find how many school locations have the word 'NY'. | SELECT count(*) FROM university WHERE LOCATION LIKE "%NY%" |
Please show the different statuses, ordered by the number of cities that have each. | SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC |
What are the last updated date for English film titles that were released in 2006? | SELECT DISTINCT T1.last_update FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'English' AND T1.release_year = 2006 |
When was the audio book with target number 069 69 released? | SELECT release_date FROM table_20174050_1 WHERE target__number = "069 69" |
What activities do we have? | SELECT activity_name FROM Activity |
How many products have the characteristic named "hot"? | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot" |
* I have left the chat * | SELECT product_id from Order_Items where order_item_id = 1 |
What is Player, when Total is greater than 288, and when Country is "South Africa"? | SELECT player FROM table_name_54 WHERE total > 288 AND country = "south africa" |
How many actors with the surname Kilmer are there? | SELECT COUNT(actor_id) FROM actor WHERE last_name = 'Kilmer' |
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011? | SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011 |
Which driver has less than 61 points, but winnings of $67,675? | SELECT SUM(laps) FROM table_name_33 WHERE winnings = "$67,675" AND points < 61 |
hello there! Can you please provide me with a list of all college names? | SELECT cName FROM college |
What was the manner of departure for the outgoing manager, giuseppe iachini? | SELECT manner_of_departure FROM table_name_77 WHERE outgoing_manager = "giuseppe iachini" |
What artist's song was performed in the week with theme of Billboard #1? | SELECT artist FROM table_name_89 WHERE theme = "billboard #1" |
What are the names of the products with the category "Herbs" please? | SELECT T1.product_name FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs" |
Which Number of electorates (2009) has a District of jhajjar, and a Reserved for (SC/ST/None) of sc, and a Constituency number smaller than 66? | SELECT COUNT(number_of_electorates__2009_) FROM table_name_56 WHERE district = "jhajjar" AND reserved_for___sc___st__none_ = "sc" AND constituency_number < 66 |
What were the notes when the Venue was Turin, Italy? | SELECT notes FROM table_name_62 WHERE venue = "turin, italy" |
What was the 1st leg score when Mufulira Wanderers played as Team 2? | SELECT 1 AS st_leg FROM table_name_6 WHERE team_2 = "mufulira wanderers" |
Which driver won the Phillip Island Grand Prix Circuit? | SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit" |
What is the To par of T9 Place Player Ernie Els? | SELECT to_par FROM table_name_95 WHERE place = "t9" AND player = "ernie els" |
Name the region for iwate | SELECT region FROM table_1585609_2 WHERE prefecture = "Iwate" |
Hello! Can you show a list of all publishers who did not publish any books in 1989? | SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 |
WHo is the Player got a Pick # smaller than 61, and a College of texas? | SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas" |
what is the name of Department ID 3 | SELECT Name FROM department WHERE department_id = 3 |
From which country is the tweet with the most likes posted? | SELECT T2.Country FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID ORDER BY T1.Likes DESC LIMIT 1 |
What was the Winning Score when Betsy Rawls was the Runner(s)-up? | SELECT winning_score FROM table_name_96 WHERE runner_s__up = "betsy rawls" |
What are the First names of students living in smith hall? | SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' |
Which title has the Translation of vesoul? | SELECT title FROM table_name_28 WHERE translation = "vesoul" |
Which wine has the highest score? | SELECT * FROM WINE ORDER BY score desc limit 1 |
What is the start address when the network number bit field is 16? | SELECT start_address FROM table_name_88 WHERE size_of_network_number_bit_field = "16" |
what is the latitude when the distance is 42.5km? | SELECT latitude FROM table_name_70 WHERE distance = "42.5km" |
What country declared its independence in 1994? | SELECT Name FROM Country WHERE IndepYear = 1994 |
What is the URL to the movie director page on Mubi of the movie titled "Red Blooded American Girl" | SELECT director_url FROM movies WHERE movie_title LIKE 'Red Blooded American Girl' |
What are all the residences? | SELECT DISTINCT Residence FROM player |
Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1? | SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 1 |
Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal? | SELECT hs_principal FROM table_name_99 WHERE wr_principal = "dave lovering" AND ms_principal = "marty pizur" |
What is the Japanese orthography for National Fisheries University? | SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Fisheries University" |
What is Place, when Player is "Phil Mickelson"? | SELECT place FROM table_name_17 WHERE player = "phil mickelson" |
How many points does Kohta Nozane have with a Motobi TSR 6? | SELECT points FROM table_name_42 WHERE bike = "motobi tsr 6" AND riders = "kohta nozane" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.