sentence
stringlengths
3
347
sql
stringlengths
18
804
What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?
SELECT DISTINCT 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 = 'Brittany Harris' OR T2.year > 2000
When did Quvenzhané Wallis first win?
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis"
What was the home team score at Glenferrie Oval?
SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie oval"
What are the origins of all flights that are headed to Honolulu?
SELECT origin FROM Flight WHERE destination = "Honolulu"
Who trained the horse on post 11 with over 36 odds?
SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11
What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?
SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.7"
Who is the tallest player in Denver Nuggets since 1980?
SELECT T1.firstName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T3.name = 'Denver Nuggets' AND T2.year > 1980 ORDER BY T1.height DESC LIMIT 1
What is the id of the problem log that is created most recently?
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
How many different numbers of cantons does the province with the Armenian name վասպուրական have?
SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական"
What league is Sun Source in?
SELECT league_division FROM table_name_6 WHERE club = "sun source"
List all manufacturer names and ids ordered by their opening year.
SELECT name , manufacturer_id FROM manufacturer ORDER BY open_year
What player scored 68-66=134?
SELECT player FROM table_name_50 WHERE score = 68 - 66 = 134
Name the landesliga nord for asv neumarkt
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "ASV Neumarkt"
On what Week was the Result W 17-14?
SELECT AVG(week) FROM table_name_4 WHERE result = "w 17-14"
Give me the count for the students younger than the average age.
select count ( fname ) from student where age < ( SELECT avg ( age ) FROM STUDENT )
Please show the record formats of orchestras in ascending order of count.
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
Show the School name with School_ID 1?
SELECT School FROM school WHERE School_ID = '1'
What result has 1947 sun bowl as the bowl game?
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
Name the total number of points for the right end
SELECT COUNT(points) FROM table_14342592_4 WHERE position = "Right end"
Which Series has an Opponent of calgary flames, and a Score of 9–4?
SELECT series FROM table_name_3 WHERE opponent = "calgary flames" AND score = "9–4"
How many gold medals did Denmark win?
SELECT MIN(gold) FROM table_name_65 WHERE nation = "denmark"
Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.
SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY' LIMIT 10
Who had the most assists agains New Orleans?
SELECT high_assists FROM table_27755603_7 WHERE team = "New Orleans"
What is the average enrollment that has hot dogs as the mascot, with a year joined later than 1926?
SELECT AVG(enrollment) FROM table_name_38 WHERE mascot = "hot dogs" AND year_joined > 1926
How many Airlines have a total distance of 705 (km)?
SELECT COUNT(_number_of_airlines) FROM table_name_76 WHERE distance__km_ = 705
How many bank branches are there?
SELECT COUNT(*) FROM bank
Find the ids of the nurses who are on call in block floor 1 and block code 1.
SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1
What was the final score when the opponent was Atlético Choloma?
SELECT final_score FROM table_name_40 WHERE opponent = "atlético choloma"
What is the last name of the musician that has been at the back position the most?
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1
What was the 3rd place value in 2011?
SELECT 3 AS rd_place FROM table_name_53 WHERE year = "2011"
Name the number of clock rate mhz when bandwidth mb/s is 2400
SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400
how many colleges are participated?
SELECT count ( distinct college ) from match_season
What is the github address of the repository that contains files used by solution ID12?
SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 12
Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name.
SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
Could you show me all the locations that have train stations with exactly 19 platforms?
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms = 19
Which circuit was located in st. petersburg, florida?
SELECT circuit FROM table_30134667_2 WHERE location = "St. Petersburg, Florida"
What is the city?
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"
Name the english title for mexico/spain/usa
SELECT english_title FROM table_name_24 WHERE country = "mexico/spain/usa"
Which pick was from Lamar High School?
SELECT pick FROM table_name_15 WHERE school = "lamar high school"
How many male (sex is M) students have class senator votes in the fall election cycle?
SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall"
What is the locomotive with a standard gauge and a serial number of 83-1015?
SELECT locomotive FROM table_name_74 WHERE gauge = "standard" AND serial_no = "83-1015"
Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73
SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73
What is the age of the tallest person?
SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Who was the co-driver for the team with more than 160 laps and the number 6 after 2010?
SELECT co_driver FROM table_name_41 WHERE laps > 160 AND year > 2010 AND number = 6
List the name of players who have a height over 5'9.
SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '5''9"'
What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?
SELECT thurs_25_aug FROM table_30058355_2 WHERE fri_26_aug = "19' 30.70 116.023mph"
Which Bronze has a Silver of 7, and a Total larger than 25?
SELECT MIN(bronze) FROM table_name_93 WHERE silver = 7 AND total > 25
List down the text of tweets posted by unknown gender users.
SELECT T1.text FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Unknown'
What is all the information about the Marketing department?
SELECT * FROM departments WHERE department_name = 'Marketing'
What was the crowd population for Footscray as an away team?
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "footscray"
What is the total for a top-10 in a masters tournament in an event smaller than 4?
SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 4
What is that engineer's full name, please?
SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count ( * ) DESC LIMIT 1
What is the pick of wiley college?
SELECT pick FROM table_name_70 WHERE college = "wiley"
What is the fastest car made by Japan?
SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' ORDER BY T1.horsepower DESC LIMIT 1
State all countries with border greater than 4,000. List the full country name.
SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 WHERE T2.Length > 4000
What was the game score on april 2, 2008?
SELECT score FROM table_name_2 WHERE date = "april 2, 2008"
What is the full name of the Vice President of Sales. Give me the URL of his/her photo.
SELECT FirstName, LastName FROM Employees WHERE Title = 'Vice President, Sales'
Which customer has the highest subtotal amount of sales orders whose assigned to the salesperson with the highest bonus?
SELECT T1.CustomerID FROM SalesOrderHeader AS T1 INNER JOIN SalesPerson AS T2 ON T1.SalesPersonID = T2.BusinessEntityID ORDER BY T1.SubTotal DESC LIMIT 1
Name the total number of material collected for justice league of america by george pérez, vol. 2
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE volume_title = "Justice League of America by George Pérez, Vol. 2"
Between 2018 to 2020, what is the average amount of shipped orders per year under Carl Nguyen?
SELECT CAST(COUNT(T1.OrderNumber) AS REAL) / 3 FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/18') OR (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/19') OR (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/20')
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte")
WHAT IS THE MEANING WITH Pīnyīn of chē?
SELECT meaning FROM table_name_61 WHERE pīnyīn = "chē"
List the names of employees involved in an inspection with the Display of Inspection Report Summary category.
SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'Display of Inspection Report Summary'
Find the semester and year which has the least number of student taking any class.
SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1
Find the average price of all product clothes.
SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes'
Which film has the highest rental rate? And what is the rate?
SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
What is the average crowd size for Richmond home games?
SELECT AVG(crowd) FROM table_name_2 WHERE home_team = "richmond"
count the number of records for each track id | do you mean count the number of race ids for each track id? | How about this--list all track Ids
select track_id from track
What is his customer id?
SELECT customer_id from customers WHERE customer_first_name = "Art" AND customer_last_name = "Turcotte"
How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?
SELECT AVG(silver) FROM table_name_89 WHERE total < 3 AND rank = 6 AND bronze > 1
Count the number of books written by Orson Scott Card.
SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card'
What Status does Freddie Jackson have?
SELECT status FROM table_name_32 WHERE artist = "freddie jackson"
Which driver had a grid of 22?
SELECT driver FROM table_name_43 WHERE grid = "22"
Who had highest rebounds during game on March 12?
SELECT high_rebounds FROM table_27744976_10 WHERE date = "March 12"
Who is the character that said "This is Illyria, lady."?
SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'This is Illyria, lady.'
What product category that Sam Craven ordered from the central and east superstore?
SELECT DISTINCT T3.Category FROM east_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` LEFT JOIN central_superstore AS T4 ON T3.`Product ID` = T4.`Product ID` WHERE T2.`Customer Name` = 'Sam Craven'
What is the value in 1971 when 30 is the value for 1969?
SELECT 1971 FROM table_name_65 WHERE 1969 = "30"
When thomas löfkvist is the general classification who is the winner?
SELECT winner FROM table_18733814_2 WHERE general_classification = "Thomas Löfkvist"
What was the rank with the qual of 115.095?
SELECT rank FROM table_name_86 WHERE qual = "115.095"
What are the states of businesses with attribute of beer and wine located?
SELECT DISTINCT T2.state FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.attribute_value = 'beer_and_wine'
Tell me the lowest date for result of win and method of points with notes of opening round
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round"
Which airlines have departures from CVO but not from APG airports?
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG"
What league has a position of 8/13?
SELECT league FROM table_name_88 WHERE league_position = "8/13"
What is the sum of pick# for Don Majkowski?3
SELECT SUM(pick__number) FROM table_name_26 WHERE player = "don majkowski"
What place had a ribbon below 9.8 and a 19.2 total?
SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.2
Which vendor gives the best profit on net for product ID 342?
SELECT T1.Name FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.ProductID = 342 ORDER BY T2.LastReceiptCost - T2.StandardPrice DESC LIMIT 1
What are the department names, cities, and state provinces for each department?
SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id
When was the episode directed by Carey Meyer aired for the first time?
SELECT original_air_date FROM table_13273629_2 WHERE directed_by = "Carey Meyer"
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65
Give the coordinate of the alleys where a crime was reported and an arrest was made.
SELECT latitude, longitude FROM Crime WHERE location_description = 'ALLEY' AND arrest = 'TRUE' GROUP BY latitude, longitude
Name the realization for phoneme of /i/ and example of /idːa/
SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/idːa/"
Who watches North Melbourne when they are away?
SELECT crowd FROM table_name_14 WHERE away_team = "north melbourne"
who is the replacement when the team is bournemouth and the outgoing manager is kevin bond?
SELECT replaced_by FROM table_name_87 WHERE team = "bournemouth" AND outgoing_manager = "kevin bond"
What about staff members who reported problems for the product "aut"?
SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
How many appellations produce wine in Napa Valley?
SELECT COUNT ( * ) FROM appellations WHERE County = "Napa"
What is the sum of laps for grid 20?
SELECT SUM(laps) FROM table_name_53 WHERE grid = 20
List the name of staff who has been assigned multiple jobs.
SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1
Who is the November playmate with the July playmate Hope Marie Carlton?
SELECT november FROM table_name_66 WHERE july = "hope marie carlton"
What are the names of wrestlers and the elimination moves?
SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 8)