sentence
stringlengths
3
347
sql
stringlengths
18
804
What was the official rating 16-39 of episode 9?
SELECT official_rating_16_39 FROM table_29773532_21 WHERE episode = 9
To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.
SELECT T2.GroupName FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID GROUP BY T2.GroupName ORDER BY COUNT(T1.BusinessEntityID) LIMIT 1
what's the player where 50 is 2 and n/o is 0
SELECT player FROM table_10621256_1 WHERE 50 = 2 AND n_o = 0
How many players named Jeff Brown were drafted
SELECT COUNT(position) FROM table_16441561_5 WHERE player = "Jeff Brown"
List the first and last name of all players in the order of birth date.
SELECT first_name , last_name FROM players ORDER BY birth_date
Which one of the songs was originally performed by Rickie Lee Jones?
SELECT song_choice FROM table_12310814_1 WHERE original_artist = "Rickie Lee Jones"
In episode nominated in Annie Awards, how many of the episodes have a percent greater than 6?
SELECT COUNT(*) FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.organization = 'Annie Awards' AND T1.result = 'Nominee' AND T2.percent > 6;
what player has place t10
SELECT player FROM table_name_37 WHERE place = "t10"
List the names of teachers in ascending order of age.
SELECT Name FROM teacher ORDER BY Age ASC
What position did the player from the saskatchewan roughriders (via toronto) play?
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)"
For each station, return its longitude and the average duration of trips that started from the station.
SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id
What tournament in 2006 had a score of 0-0?
SELECT tournament FROM table_name_5 WHERE 2006 = "0-0"
What are their jobs?
select name, job from person where name in ( select friend from PersonFriend where name = "Zach" )
What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?
SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
what is the city of Alice
SELECT city FROM Person where name = 'Alice'
Which main cast seasons were portrayed by Joe Jonas?
SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = "joe jonas"
State the name of the city with the most venues.
SELECT T1.City_Name FROM City AS T1 INNER JOIN Venue AS T2 ON T1.City_Id = T2.City_Id GROUP BY T1.City_Id ORDER BY COUNT(T2.Venue_Id) DESC LIMIT 1
What is average age for different job title?
SELECT AVG(age), job FROM Person GROUP BY job
Which Crowd has a Home team of richmond?
SELECT SUM(crowd) FROM table_name_14 WHERE home_team = "richmond"
hi. can you tell me which product made the highest number of outcomes? | What attributes of the product that made the highest number of outcomes would you like to know? | I would like to know the most number of outcomes for all outcome codes
SELECT count ( outcome_code ) from project_outcomes group by outcome_code order by count ( outcome_code ) desc limit 1
How many orders are there?
SELECT count ( * ) FROM orders
Find the number of members of club "Pen and Paper Gaming".
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming"
With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?
SELECT number FROM table_name_15 WHERE builder = "baldwin locomotive works" AND works_number = 40864
What are the notes with the time 6:24.21?
SELECT notes FROM table_name_94 WHERE time = "6:24.21"
who is the sponsor of jean luc bouche?
SELECT Sponsor_Name FROM player WHERE Player_name = "Jean Luc Bouché"
What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?
SELECT COUNT(longitude) FROM table_name_1 WHERE ansi_code = 1036573 AND water__sqmi_ < 0.404
what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon"
At Time Warner Cable Arena 12,096, what was the high points?
SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096"
what was the score in the loss to tapani (0-1)?
SELECT score FROM table_name_39 WHERE loss = "tapani (0-1)"
Which team was the away team when home team was essendon?
SELECT away_team FROM table_29090919_1 WHERE home_team = "Essendon"
Among the transactions made in July, 2014, how many of them were made by a male customer?
SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Gender = 'M' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'
How many DVD volumes was identified by Skippy Johnson?
SELECT dvd_volume FROM table_name_36 WHERE identity_ies_ = "skippy johnson"
On which episode number is event 4 The Wall and event 1 the Pendulum?
SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = "The Wall" AND event_1 = "Pendulum"
Who was the winning driver in the FR2.0 11 series?
SELECT winning_driver FROM table_25572068_1 WHERE series = "FR2.0 11"
How many camera lenses have a focal length longer than 15 mm?
SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15
What are the names of courses that give either 3 credits, or 1 credit and 4 hours?
SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4
Show the number of card types.
SELECT count(DISTINCT card_type_code) FROM Customers_Cards
What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
What is the city code of student Tracy kim?
SELECT city_code from student where fname = "Tracy" and lname = "Kim"
What nationality is Northwood School (N.Y.)?
SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)"
What was the position of the team Minneapolis Lakers during round T?
SELECT position FROM table_name_62 WHERE round = "t" AND team = "minneapolis lakers"
What is the Date, when Partnering is "Francesca Lubiani", and when Opponent in Final is "Yuliya Beygelzimer / Jennifer Hopkins"?
SELECT date FROM table_name_10 WHERE partnering = "francesca lubiani" AND opponent_in_final = "yuliya beygelzimer / jennifer hopkins"
What Winning driver has a Name of mugello circuit?
SELECT winning_driver FROM table_name_55 WHERE name = "mugello circuit"
What team has a 118 Point for?
SELECT team FROM table_name_24 WHERE points_for = "118"
Find the location of the club "Pen and Paper Gaming".
SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming"
Give me the product type, name and price for all the products supplied by supplier id 3.
SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3
What is the Score with a Date that is march 12?
SELECT score FROM table_name_93 WHERE date = "march 12"
how many players played running back where status is made 53-man roster at start of 2009 season
SELECT COUNT(player) FROM table_20898602_1 WHERE status = "Made 53-man roster at start of 2009 season" AND position = "Running back"
In how many counties did McCain get 65.72% of the votes?
SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = "65.72%"
What was the first leg score in the 2nd round?
SELECT first_leg FROM table_name_41 WHERE round = "2nd"
Return the id and name of the document with the most paragraphs.
SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1
How many events with "Marriage" type codes are there? | There are 5 events with the "Marriage" service type code. | What are event details associated with the event of this type code?
SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'
Does Trinity (valhalla) have HDMI?
SELECT hdmi FROM table_name_29 WHERE codename = "trinity (valhalla)"
What is the first name and job id for all employees in the Finance department?
SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'
Find the distinct winery of wines having price between 50 and 100.
SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Count the number of games taken place in park "Columbia Park" in 1907.
SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';
Which nation has the highest GDP? Please give the nation's full name.
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1
What was the course called that had an Edition of 117th?
SELECT course FROM table_name_68 WHERE edition = "117th"
What buildings have course sections offered then?
SELECT building FROM SECTION where semester = 'Fall' and YEAR = 2002
Find the white grape used to produce wines with scores above 90.
SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" AND T2.score > 90
What is the score for the game larger than 4 in series 3-2?
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?
SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0
State the delivery date of cookware.
SELECT T FROM ( SELECT DISTINCT IIF(T2.`Product Name` = 'Cookware', T1.DeliveryDate, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL
How many tracks have an unformatted capacity per side of 2000kb?
SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = "2000kb"
Which country has Hydra Head Records with a 2lp format?
SELECT country FROM table_name_97 WHERE format = "2lp" AND label = "hydra head records"
For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team?
SELECT winning_team FROM table_name_15 WHERE winning_driver = "emerson fittipaldi" AND pole_position = "michael andretti" AND circuit = "cleveland burke lakefront airport"
WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?
SELECT COUNT(round) FROM table_name_59 WHERE player = "nicholas tremblay"
WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?
SELECT place FROM table_name_62 WHERE score = 76 - 69 - 64 - 70 = 279
What are all the names of the pilots who flew a flight in the United States?
SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States'
Which physicians are affiliated with either Surgery or Psychiatry department? Give me their names.
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'
What is the score of the United States, which has a to par of +5?
SELECT score FROM table_name_84 WHERE country = "united states" AND to_par = "+5"
What are the word pairs that occured only twice?
SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 2
What English word has the same meaning as the German word "german"?
SELECT english FROM table_name_3 WHERE "german" = "german"
Name the total number of wind m/s for sunday emmanuel
SELECT COUNT(wind__m_s_) FROM table_1231316_6 WHERE athlete = "Sunday Emmanuel"
Can you show me the id of the instructor who is from the History department?
SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'
How did the election end for Terry L. Bruce?
SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"
How many budget types do we have?
SELECT count(*) FROM Ref_budget_codes
What is the owner's name of the of the business that violates 103156 on June 12, 2014?
SELECT DISTINCT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.violation_type_id = 103156 AND T1.`date` = '2014-06-12'
Show the statuses of roller coasters longer than 3300 or higher than 100.
SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
Where was d: ~50nm, l: ~600nm geometry researched?
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~50nm, L: ~600nm"
List the official full names and genders of legislators who have Collins as their last name.
SELECT official_full_name, gender_bio FROM current WHERE last_name = 'Collins'
When did they visit parking?
SELECT T3.visit_date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" union SELECT T3.VISIT_DATE FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Marcelle"
What year resulted in 54 laps?
SELECT year FROM table_name_39 WHERE laps = 54
On which datebis arco arena 17361 the location attendance?
SELECT date FROM table_23285805_8 WHERE location_attendance = "Arco Arena 17361"
How did Kyran Muller submit his complaint?
SELECT DISTINCT T2.`Submitted via` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kyran' AND T1.last = 'Muller'
What's the original season in 11th place?
SELECT original_season FROM table_name_15 WHERE placing = "11th place"
What is the count of the car models produced in the United States?
SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';
What is the score of the scores when Game had a Record of 17-29?
SELECT SUM(game) FROM table_name_27 WHERE record = "17-29"
How many gold medals when the total is more than 1 and 18 silver?
SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18
What is the publication date of the book with the most pages?
SELECT publication_date FROM book ORDER BY num_pages DESC LIMIT 1
What are the names of all video games that are collectible cards?
SELECT gname FROM Video_games WHERE gtype = "Collectible card game"
Show all statement id and the number of accounts for each statement.
SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID
What is the most common first name among the vendor contact?
SELECT FirstName FROM Person WHERE PersonType = 'VC' GROUP BY FirstName ORDER BY COUNT(*) DESC LIMIT 1
What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
SELECT MIN(grid) FROM table_name_28 WHERE team = "pkv racing" AND points = 13 AND laps < 64
how many projects has stuff worked as leaders total?
SELECT count ( distinct project_id ) FROM Project_Staff WHERE role_code = 'leader'
What are the names of all students who took a class and the corresponding course descriptions?
SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code
How many bike stations were installed in San Jose in 2014? Indicate the names of the stations.
SELECT SUM(CASE WHEN city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014' THEN 1 ELSE 0 END) FROM station UNION SELECT name FROM station WHERE city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014'
What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?
SELECT eagle_riders FROM table_name_27 WHERE japanese_voice_actor = "katsuji mori"
Which word has the most repetitions in the Catalan language? Give the ID of the word.
SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words )
What are the names of body builders?
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID