sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
How many entries for 100 occur when the average is 15.78? | SELECT COUNT(100) FROM table_2985664_8 WHERE average = "15.78" |
Give the country where St. George's Park is located. | SELECT T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T2.City_Id = T1.City_Id INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_id WHERE T1.Venue_Name = 'St George''s Park' |
Where is the location where Scott Junk was the opponent? | SELECT location FROM table_name_89 WHERE opponent = "scott junk" |
What is Geust, when Result is 0:9? | SELECT geust FROM table_name_45 WHERE result = "0:9" |
What are the names of the songs whose rating is below the rating of all songs in English? | SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english') |
Which title has xbox as the platform with a year prior to 2006? | SELECT title FROM table_name_85 WHERE platform = "xbox" AND year < 2006 |
Give me a list of all the distinct building descriptions. | SELECT DISTINCT building_description FROM Apartment_Buildings |
Can you tell me the document type code, name, and description of the document with the name 'Noel CV'? | SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' |
How many customers have email that contains "gmail.com"? | SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%" |
When there are 3.39 million u.s viewers what is the production code? | SELECT production_code FROM table_19068566_1 WHERE us_viewers__million_ = "3.39" |
Tell me the most year for 3 points | SELECT MAX(year) FROM table_name_30 WHERE points = 3 |
What percentage of countries became independent during the year 1960? | SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Independence) = '1960' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics |
What player has a number of playoff games played greater than 0? | SELECT player FROM table_name_64 WHERE pl_gp > 0 |
Which Round has a Pick larger than 179? | SELECT MAX(round) FROM table_name_63 WHERE pick > 179 |
Where is the place that has a Callsign of DWRJ-FM? | SELECT location FROM table_name_77 WHERE callsign = "dwrj-fm" |
Sort the first names of all the authors in alphabetical order. | SELECT fname FROM authors ORDER BY fname |
What is Bob Charles' To par? | SELECT to_par FROM table_name_84 WHERE player = "bob charles" |
Who constructed the car that has a Time/Retired of engine, and over 50 laps? | SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50 |
With Round 3 and Pick # over 10, what is the higher Overall number? | SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10 |
What is the customer last name, id and phone number with most number of orders? | SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 |
Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30? | SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30 |
How many railways are there? | SELECT COUNT(*) FROM railway |
How many movies did the director of the highest movie popularity make? | SELECT COUNT(movie_id) FROM movies WHERE director_id = ( SELECT director_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 ) |
How many Credit Card complaints did Sharon handle? | SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Product = 'Credit card' AND T1.server = 'SHARON' |
List the IDs and full names of legislators from the Liberal Republican party. | SELECT T2.bioguide_id, T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'Liberal Republican' |
The column "winning_pilot " in Table: "MATCH" refers to column "pilot_id" in Table: " pilot" | Did you mean that you want to get Pilot Id? | Yes | SELECT distinct t1.pilot_id FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot |
How many Account Representatives are there in Illinois with satisfying performance? | SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' AND T2.state = 'IL' |
What is the high 10 profile when high profile is 160? | SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160 |
What was the record in the win 7 streak? | SELECT record FROM table_name_86 WHERE streak = "win 7" |
What is the English of chae soo-yeon? | SELECT english_title FROM table_name_56 WHERE role = "chae soo-yeon" |
What is the total number of Lost for the Highest Ranking of – –? | SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –" |
What is the minimum and maximum number of bathrooms of all the apartments? | SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments |
December larger than 21, and a Opponent of Pittsburgh penguins had what average game? | SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = "pittsburgh penguins" |
For the productline where the product No.S18_2949 was produced, what's the text description for that product line? | SELECT t1.textDescription FROM productlines AS t1 INNER JOIN products AS t2 ON t1.productLine = t2.productLine WHERE t2.productCode = 'S18_2949' |
Hello Can you provide me with a list of all of the different department names? | SELECT dept_name from department |
What is the total number of rebounds values for Ann Wauters? | SELECT COUNT(rebounds) FROM table_name_56 WHERE name = "ann wauters" |
What is the employee ID of the employee who flew the longest distance? | SELECT t1.eid FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid ORDER BY t2.distance desc limit 1 |
List the name with registered members? | There are the names of branches with registered members. | which city of Alexandra? | SELECT city FROM branch where name = 'Alexandre' |
What was the date of the game when the record was 9–5–2? | SELECT date FROM table_name_78 WHERE record = "9–5–2" |
Find the classrooms in which grade 4 is studying. | SELECT DISTINCT classroom FROM list WHERE grade = 4 |
what is the flag of the ship id 1 | SELECT flag FROM ship where Ship_ID = 1 |
Name the opponents for 24 july 2011 | SELECT opponents FROM table_name_45 WHERE date = "24 july 2011" |
Who was Team #1 when Team #2 was galatasaray cc i̇stanbul? | SELECT team__number1 FROM table_name_20 WHERE team__number2 = "galatasaray cc i̇stanbul" |
Can you please tell me how many credits that course was worth? | SELECT credits FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 |
What services do they offer? | SELECT services FROM station |
State the full name of state code "GA". | SELECT T FROM ( SELECT IIF(StateCode = 'GA', State, NULL) AS T FROM Regions ) WHERE T IS NOT NULL |
Who was the distinct director of ET the Extra-Terrestrial? | SELECT director FROM film where title = 'ET the Extra-Terrestrial' |
What time was the kickoff on September 15, 1985? | SELECT kickoff_[a_] FROM table_name_68 WHERE date = "september 15, 1985" |
If the location is Yangon, Myanmar, what is the opponent total number? | SELECT COUNT(opponent) FROM table_25428629_1 WHERE location = "Yangon, Myanmar" |
What is the frequency of the model whose part number is ado520biaa5do? | SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = "ADO520BIAA5DO" |
Give the description for the Act No.2, Scene No.2 of Midsummer Night's Dream. | SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = '2' AND T2.Scene = '2' AND T1.Title = 'Midsummer Night''s Dream' |
What is the least popular kind of decor? | SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1; |
Who built the Jim Crawford car? | SELECT constructor FROM table_name_76 WHERE driver = "jim crawford" |
List all inspection IDs where the employee named "Rosemary Kennedy" was involved. | SELECT DISTINCT T2.inspection_id FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Rosemary' AND T1.last_name = 'Kennedy' |
Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards? | SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" |
Among the menu pages on which the dish "Chicken gumbo" had appeared, what is the menu ID of the one with the biggest width? | SELECT T1.id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo' ORDER BY T1.full_width DESC LIMIT 1 |
Show student ids for all male students. | SELECT StuID FROM Student WHERE Sex = 'M' |
What is the Date that chicago black hawks has a Record of 2–2? | SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2" |
What is the Date of the Competition with Man of the Match Ollie Bronnimann? | SELECT date FROM table_name_41 WHERE man_of_the_match = "ollie bronnimann" |
What is the lowest Killed, when Perpetrator is "Sherrill, Patrick Henry , 44"? | SELECT MIN(killed) FROM table_name_93 WHERE perpetrator = "sherrill, patrick henry , 44" |
Count the number of templates. | SELECT count(*) FROM Templates |
What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11? | SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 february 1973, 01:11" |
How many people had filled a role in the episode titled "Cherished", but did not show up in the on-screen credits? | SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.credited = 'false' |
List the themes of parties in ascending order of number of hosts. | SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC |
How are you! Can you provide me with a list of all of the
master customer ids and corresponding cmi details? | SELECT master_customer_id, cmi_details from Customer_Master_Index |
What is the genre of Super Mario Galaxy? | SELECT genre FROM table_name_50 WHERE game = "super mario galaxy" |
List all restaurant types. | SELECT ResTypeName FROM Restaurant_Type |
What are the dates of transactions with at least 100 share count or amount bigger than 100? | SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100 |
Tally the product name and quantity of the first ten sales. | SELECT T3.Name, T2.Quantity FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T2.SalesID BETWEEN 1 AND 10 |
What are the name and id of the three highest priced rooms? | SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3; |
From 1968 to 1970, what are indicator names whose license type is open and values are less than 100? | SELECT DISTINCT T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year >= 1968 AND T1.Year < 1971 AND T2.LicenseType = 'Open' AND T1.Value < 100 |
what is the mol.weight (daltons) when the percent of mass is 1.5? | SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = "1.5" |
What about the names of scientists that worked on the project named 'A Puzzling Parallax'? | SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax' |
Which county has 438 (4%) listed under R. Bacon? | SELECT county FROM table_name_92 WHERE r_bacon = "438 (4%)" |
can you please display only the department names with the number of employees in each one? | SELECT department_name , COUNT ( * ) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name |
Among the products with product ID lower than 15, how many of them costs 10 and below? | SELECT COUNT(ProductID) FROM Products WHERE ProductID < 15 AND Price <= 10 |
Provide the full address of Ursola Purdy. | SELECT T3.street_number, T3.street_name, T3.city FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN country AS T4 ON T4.country_id = T3.country_id WHERE T1.first_name = 'Ursola' AND T1.last_name = 'Purdy' |
What are the dates of leaving office for politician from the province of Seville? | SELECT left_office FROM table_26362472_1 WHERE province = "Seville" |
what are the minister names of the parties with 1 events | SELECT T2.Minister FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count ( * ) = 1 |
What are the amenities of the dorm that has the most female students living in it? | SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T1.dormid = ( select T1.dormid from dorm as T1 join lives_in as T4 on T1.dormid = T4.dormid join student as T5 on T4.stuid = T5.stuid where T5.sex = "F" group by T1.dormid order by count ( * ) desc limit 1 ) |
What was the Home team Carlton's Ground? | SELECT ground FROM table_name_55 WHERE home_team = "carlton" |
Show names of teachers and the courses they are arranged to teach. | SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID |
What was the performance length of the 1999 season in bydgoszcz, poland? | SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland" |
what is the name of the customer of customer code 401 | SELECT customer_name from Customers where customer_code = 401 |
What was the score of the game against the Braves with a record of 41–27? | SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–27" |
Find all airlines that have fewer than 200 flights. | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 |
Among the history works written by Shakespeare, how many works whose 1st acts have no more than 2 scenes? | SELECT COUNT(DISTINCT T2.work_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene < 2 AND T1.GenreType = 'History' |
Can you tell me the Opponent that has the December of 2? | SELECT opponent FROM table_name_52 WHERE december = 2 |
How many altitudes does the common with an area of 130.7 km^2 have? | SELECT COUNT(altitude__mslm_) FROM table_1449176_1 WHERE area__km_2__ = "130.7" |
Which Played has a Points difference of +261? | SELECT played FROM table_name_50 WHERE points_difference = "+261" |
Show origins of all flights with destination Honolulu. | SELECT origin FROM Flight WHERE destination = "Honolulu" |
Show the delegate from district 1 in election. | SELECT Delegate FROM election WHERE District = 1 |
And what about the lowest oppose rate? | SELECT min ( Oppose_rate ) FROM candidate |
What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps? | SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = "3" AND name = "gabriel quak jun yi" |
Who is Pick #41? | SELECT player FROM table_name_99 WHERE pick__number = "41" |
What is the name of the person whose date of death is 01-04-1954? | SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954" |
Name the district for rep. warren r. davis died during previous congress | SELECT district FROM table_225200_4 WHERE reason_for_change = "Rep. Warren R. Davis died during previous congress" |
What is the lowest episode number that had 4.03 million viewers? | SELECT MIN(episode__number) FROM table_27927185_1 WHERE viewers__millions_ = "4.03" |
List the most common type of Status across cities. | SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 |
How many matches were held in 2011? | SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2011%' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.