sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What are the names of all movies directed by Steven Spielberg? | SELECT title FROM Movie WHERE director = 'Steven Spielberg' |
What are the elimination moves of wrestlers whose team is "Team Orton"? | SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton" |
What is the role of W Jaffer in season year 2012? | SELECT T4.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id INNER JOIN Season AS T5 ON T3.Season_Id = T5.Season_Id WHERE T1.Player_name = 'W Jaffer' AND T5.Season_Year = 2012 |
What was the date of the game against Oxford United? | SELECT date FROM table_name_87 WHERE opposing_team = "oxford united" |
What is the record when George Hill (11) had the high rebounds? | SELECT record FROM table_name_58 WHERE high_rebounds = "george hill (11)" |
What is the person's business ID with a vista credit card number "11113366963373"? | SELECT T2.BusinessEntityID FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.CardNumber = 11113366963373 |
What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran? | SELECT date_performed FROM table_name_89 WHERE main_contestant = "jatin shah" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran" |
what is the position for the united states u-20 affiliation | SELECT position FROM table_29626583_1 WHERE affiliation = "United States U-20" |
I want the year for the three musketeers | SELECT year FROM table_name_13 WHERE serial_title = "the three musketeers" |
List the names of all the customers in alphabetical order. | SELECT customer_details FROM customers ORDER BY customer_details |
What are the ids of templates with template type code PP or PPT? | SELECT template_id FROM Templates WHERE template_type_code = "PP" OR template_type_code = "PPT" |
Which Bats have Throws of r, and a DOB of 22 may 1973? | SELECT bats FROM table_name_49 WHERE throws = "r" AND dob = "22 may 1973" |
What is the age of the oldest device user? | SELECT MAX(age) FROM gender_age |
What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos? | SELECT transfer_fee FROM table_name_97 WHERE ends = 2011 AND moving_from = "thrasyvoulos" |
Which of these is operated by American Airlines? | SELECT * FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' |
list results by project by scientists names | Do you mean list the project names by scientists names? | yes | SELECT T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.Name |
Thank you very much! Can you filter this list to show only the cities in the country with the largest population? | SELECT T2.Name, T1.Name FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID order by Population desc limit 1 |
How many goals were scored on 21 Junio 2008? | SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 2008" |
Find the title of course that is provided by Statistics but not Psychology departments. | SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' |
Who is the runner up when the score was 3–6, 6–3, [10–4]? | SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]" |
When was Windy Hill used as a venue? | SELECT date FROM table_name_90 WHERE venue = "windy hill" |
How many celebrities had an 18October2007 Original air Date? | SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = "18October2007" |
What models have an a2 barrel profile? | SELECT name FROM table_12834315_5 WHERE barrel_profile = "A2" |
what are the decor of those rooms? | SELECT distinct decor FROM Rooms WHERE bedtype = 'King' |
What is the court rank of the person with a courtesy title of nagato-no-kami? | SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami" |
What is the school of the player from Lake Charles, LA? | SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA" |
Find the employee id for all employees who earn more than the average salary. | SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) |
What is the lowest brup when long is 94? | SELECT MIN(brup) FROM table_26176081_29 WHERE long = 94 |
What's the full name of the team that won the most games in 2001 but didn't make the playoffs? | SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.PostGP = 0 ORDER BY T2.won DESC LIMIT 1 |
What is the total number of active business in AZ with a high review count? | SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'High' AND active LIKE 'True' |
What event had the opponent Ryan Bow? | SELECT event FROM table_name_89 WHERE opponent = "ryan bow" |
Which college/junior/club team (league) did Brett Sonne play in? | SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne" |
Which venue had a match played on August 16, 2006? | SELECT venue FROM table_name_90 WHERE date = "august 16, 2006" |
Which Avg/G has a Long of 93, and a Loss smaller than 249? | SELECT SUM(avg_g) FROM table_name_71 WHERE long = 93 AND loss < 249 |
How many total domestic passengers were there? | SELECT sum ( Domestic_Passengers ) FROM airport |
How many states are there? | SELECT count(*) FROM area_code_state |
What is the lowest overall amount of assists? | SELECT MIN(assists) FROM table_25016555_5 |
Name the Surface which has a Score in the final of 6–3, 6–2 and Opponents in the final of mansour bahrami diego pérez? | SELECT surface FROM table_name_87 WHERE score_in_the_final = "6–3, 6–2" AND opponents_in_the_final = "mansour bahrami diego pérez" |
what is the check in and check out of the room id RND ? | SELECT T1.checkin, T1.checkout FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.roomid = "RND" |
Which college is Kellen Davis from? | SELECT college FROM table_name_44 WHERE player = "kellen davis" |
Could you tell me the ID and name of the San Francisco station? | SELECT distinct start_station_name , start_station_id FROM trip WHERE start_station_name = 'San Francisco Caltrain 2 ( 330 Townsend ) ' |
What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29? | SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29 |
What is the Draw for skra warszawa? | SELECT draw FROM table_name_5 WHERE team = "skra warszawa" |
what was the score when scoville jenkins was the opponent? | SELECT score FROM table_name_59 WHERE opponent = "scoville jenkins" |
Which pre-season has a Mar. 3 of nr, and a Poll of usa today/espn coaches' poll (top 25)? | SELECT pre__season FROM table_name_24 WHERE mar_3 = "nr" AND poll = "usa today/espn coaches' poll (top 25)" |
What is the average Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is greater than 4? | SELECT AVG(bike_no) FROM table_name_34 WHERE driver___passenger = "joris hendrickx / kaspars liepins" AND position > 4 |
How many have a DOB after 1978? | SELECT COUNT ( * ) FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor" AND T1.Date_of_Birth > 1978 |
In Western Oval, what was the away team score? | SELECT away_team AS score FROM table_name_33 WHERE venue = "western oval" |
What was the score when the record was 19–35 | SELECT score FROM table_23248869_8 WHERE record = "19–35" |
What are the degrees conferred in "San Francisco State University" in 2001. | SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND t2.year = 2001 |
What are the average download times for the a release tagged "1980s"? | SELECT CAST(SUM(T1.totalSnatched) AS REAL) / COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' |
What is the contact name for product Teatime Chocolate Biscuits? | SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Teatime Chocolate Biscuits' |
What purses had a winners share equal to $428650? | SELECT purse___$__ FROM table_1520559_1 WHERE winners_share__$_ = 428650 |
Give me the address, home phone and salary of the Sales Manager. | SELECT Address, HomePhone, Salary FROM Employees WHERE Title = 'Sales Manager' |
In which district is the incumbent John Breaux? | SELECT district FROM table_1341690_18 WHERE incumbent = "John Breaux" |
How much is the highest number in 2006 with fewer than 0 in 2002? | SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0 |
What is the population as of 11-01-2010 for Bayan County? | SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county" |
When the home team was geelong, what did the away team score? | SELECT away_team AS score FROM table_name_6 WHERE home_team = "geelong" |
What is Run 2, when Run 1 is 2:09.09? | SELECT run_2 FROM table_name_84 WHERE run_1 = "2:09.09" |
What are the first names of all students who took ACCT-211 and received a C? | SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C' |
What is the id of the event with the most participants? | SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1 |
Name the least points for chassis of kurtis kraft 500a | SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a" |
List down the customer's geographic identifier who are handlers or cleaners. | SELECT GEOID FROM Customers WHERE OCCUPATION = 'Handlers-cleaners' |
Which team had the least number of attendances in home games in 1980? | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; |
What is the result of the game that was played at Soldier Field? | SELECT result FROM table_name_90 WHERE game_site = "soldier field" |
Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir? | SELECT MIN(year_completed) FROM table_name_31 WHERE dam_type = "concrete gravity" AND impounded_body_of_water = "deep creek reservoir" |
What is the shortest trip made starting from Franklin at Maple and what is the maximum wind speed at that date? | SELECT MIN(T1.duration), MAX(T2.max_wind_Speed_mph) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_station_name = 'Franklin at Maple' AND T2.date = '9/4/2013' |
What is the Away team score with north melbourne as home team? | SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne" |
show all the branches opened in 2000? | SELECT Branch_ID FROM branch WHERE open_year = 2000 |
What time did Sara Nordenstam get? | SELECT time FROM table_name_40 WHERE name = "sara nordenstam" |
How many colleges did the player drafted at 36 attend? | SELECT COUNT(college) FROM table_16575609_5 WHERE pick__number = 36 |
At what average position is the drawn 9 and the points greater than 25? | SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 25 |
What is the page count for menu with page ID of 130? | SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130 |
What was the away team score at kardinia park? | SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia park" |
List the infant mortality of country with the least Amerindian. | SELECT T1.Infant_Mortality FROM population AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Country = T2.Country WHERE T2.Name = 'Amerindian' ORDER BY T2.Percentage ASC LIMIT 1 |
What is the Home with an Away that is toronto rebels? | SELECT home FROM table_name_94 WHERE away = "toronto rebels" |
How many pick numbers did Matt Marquess have? | SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess" |
What is the highest value for race? | SELECT MAX(races) FROM table_15852257_1 |
Show member names without any registered branch? | SELECT name FROM member WHERE member_id NOT IN ( SELECT member_id FROM membership_register_branch ) |
Where is the place that menu with ID 12472 was created for? | SELECT location FROM Menu WHERE id = 12472 |
On what date was the score 0-0? | SELECT date FROM table_name_33 WHERE score = "0-0" |
How many of the professors are female? | SELECT COUNT(prof_id) FROM prof WHERE gender = 'Female' |
List in alphabetic order the names of all distinct instructors. | SELECT DISTINCT name FROM instructor ORDER BY name |
What was the lowest year for TCU? | SELECT MIN(year) FROM table_name_79 WHERE winner = "tcu" |
Can I see list of names and classes of ships that don't have any captain? | SELECT name , CLASS FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain ) |
What is the score for Set 1 at 19:21? | SELECT score FROM table_name_59 WHERE set_1 = "19:21" |
Show headquarters with at least two companies in the banking industry. | SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 |
What is the highest no. in season? | SELECT MAX(no_in_season) FROM table_10701133_1 |
How many players have the hometown Pennsauken, NJ? | SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = "Pennsauken, NJ" |
What is the ICAO for Denmark, and the IATA is bll? | SELECT icao FROM table_name_7 WHERE country = "denmark" AND iata = "bll" |
what team scored on december 19 | SELECT record FROM table_name_65 WHERE date = "december 19" |
How many medicines were not approved by the FDA? | SELECT count(*) FROM medicine WHERE FDA_approved = 'No' |
Calculate the total production for each product which were supplied from Japan | SELECT SUM(T1.UnitsInStock + T1.UnitsOnOrder) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan' |
how many visa card use to payment | SELECT count ( * ) FROM INVOICES where payment_method_code = "Visa" |
What are the titles of all movies that were not reviewed by Chris Jackson? | SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' |
WWhich rder had a vehicle manufactured by kr211v? | SELECT rider FROM table_name_26 WHERE manufacturer = "kr211v" |
What is the description for the CIS-220 and how many credits does it have? | SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220' |
What is the patient id of that appointment? | select patient from appointment order by start desc limit 1 |
Return the total points of the gymnast with the lowest age. | SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1 |
what's the result with opponent being at new england patriots | SELECT result FROM table_14951643_1 WHERE opponent = "at New England Patriots" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.