sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the Date with an Away that is broadview hawks? | SELECT date FROM table_name_5 WHERE away = "broadview hawks" |
What college/junior/club team is a left wing from Canada? | SELECT college_junior_club_team FROM table_name_94 WHERE position = "left wing" AND nationality = "canada" |
HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006? | SELECT MAX(carbon_dioxide_emissions_per_year__10_6_tons___2006_) FROM table_11251601_2 WHERE country = "Russia" |
What is the high assists of Hamilton (24)? | SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)" |
Please provide the id of the solution whose repository has the most watchers. | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = ( SELECT MAX(Watchers) FROM Repo ) |
What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average attendance of 16,605? | SELECT MAX(lost) FROM table_name_40 WHERE season > 1979 AND avg_attend = 16 OFFSET 605 |
What are the carriers of devices that are in stock in more than a single shop? | SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 |
For what tournament was Blaž Kavčič the opponent in the final? | SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič" |
What are their item ids? | select distinct ( i_id ) from review |
What gender is the team that has a decile of 5 and in the Dalefield area? | SELECT gender FROM table_name_95 WHERE decile = 5 AND area = "dalefield" |
what's the home team where score is l 80–88 | SELECT home FROM table_11964047_9 WHERE score = "L 80–88" |
What is the place of player sergio garcía, who has £77,500? | SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía" |
Which defending forces has a population of 230? | SELECT defending_forces FROM table_name_62 WHERE population = "230" |
What is High Rebounds, when Location Attendance is "Madison Square Garden Unknown", and when Date is "May 18"? | SELECT high_rebounds FROM table_name_15 WHERE location_attendance = "madison square garden unknown" AND date = "may 18" |
What is the score at game 31? | SELECT score FROM table_name_19 WHERE game = 31 |
Which score has a Result of 11–0? | SELECT score FROM table_name_73 WHERE result = "11–0" |
what is а а [a] when гь гь [ɡʲ] is л л [l]? | SELECT а_а_[a] FROM table_202365_2 WHERE гь_гь_[ɡʲ] = "Л л [l]" |
Which player had a To par of +11? | SELECT player FROM table_name_55 WHERE to_par = "+11" |
Find the number of rooms located on each block floor. | SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor |
Who had the decision with boston at home? | SELECT decision FROM table_name_34 WHERE home = "boston" |
Between 2011 to 2016, in which countries can you find the universities where at least 50% of its students are international students? | SELECT DISTINCT T3.country_name FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.pct_international_students > 50 AND T2.year BETWEEN 2011 AND 2016 |
Name the M939 series for short wheelbase and M809 series of m817 | SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817" |
Name the nomination in 2011 that won | SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won" |
Which nation has the lowest proportion of people who speak an African language? Please state the nation's full name. | SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' ORDER BY T2.Percentage ASC LIMIT 1 |
What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari? | SELECT chrome FROM table_name_22 WHERE opera = "0.30%" AND safari = "6.77%" |
Among the patients who have been using Penicillin V Potassium 250 MG, what percentage of patients are female? | SELECT CAST(SUM(CASE WHEN T1.gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' |
Give the number of "game-Fishing" apps. | SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'game-Fishing' |
Which royal house corresponds to Polyxenos Epiphanes Soter? | SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes soter" |
How many episodes are there in the 9th season of Law and Order? Calculate the average number of casts per season of the said series. | SELECT SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS num , CAST(SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.episode_id) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Cast' AND T2.series = 'Law and Order' |
What are their color descriptions? | SELECT T1.product_name , T2.color_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs" |
Can you show the artist name of song Tumi robe nirobe? | SELECT artist_name FROM song WHERE song_name = "Tumi robe nirobe" |
Find the department name of the instructor whose name contains 'Soisalon' | SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' |
Which job titles correspond to jobs with salaries over 9000? | SELECT job_title FROM jobs WHERE min_salary > 9000 |
How many points have 75 laps? | SELECT points FROM table_name_6 WHERE laps = "75" |
What are the star rating descriptions of the hotels with price above 10000? | SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 |
Find the first name and gender of the student who has allergy to milk but not cat. | SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") |
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle. | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" |
What is the type of Kuang-Hsing? | SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing" |
List down the product IDs and names that include the word "Outdoor". | SELECT ProductID, T FROM ( SELECT ProductID , CASE WHEN `Product Name` LIKE '%Outdoor%' THEN `Product Name` ELSE NULL END AS T FROM Products ) WHERE T IS NOT NULL ORDER BY T DESC |
What are the air carriers of the flights that flew on August 25, 2018 that have departure delay of -5? | SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.FL_DATE = '2018/8/25' GROUP BY T1.Description |
What is the 2nd leg when second team is Sumykhimprom? | SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom" |
How many students are age 18? | SELECT count(*) FROM Student WHERE age = 18 |
How many American movies have cast number more than 1? | SELECT COUNT(T2.actorid) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' AND T2.cast_num > 1 |
What is the English title of the film Directed by Jayme Monjardim? | SELECT english_title FROM table_name_21 WHERE director = "jayme monjardim" |
Name the most number in series for production code of 3abc11 | SELECT MAX(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC11" |
What family was featured in episode us14 of the series? | SELECT family_families FROM table_19897294_11 WHERE no_in_series = "US14" |
Which semesters do not have any student enrolled? List the semester name. | SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ) |
What is the position of the winner with 792 points? | SELECT position FROM table_name_39 WHERE points = "792" |
What is Scott Hoch with a Score of 66 Country? | SELECT country FROM table_name_36 WHERE score = 66 AND player = "scott hoch" |
What cardwell has an insider advantage and a knight of 1% | SELECT cardwell FROM table_name_43 WHERE source = "insider advantage" AND knight = "1%" |
Find the average access count across all documents? | SELECT avg(access_count) FROM documents |
What is the most common product ordered by a customer from Germany? | SELECT T2.ProductID FROM Customers AS T1 INNER JOIN `Order Details` AS T2 WHERE T1.Country = 'Germany' GROUP BY T2.ProductID ORDER BY COUNT(T2.ProductID) DESC LIMIT 1 |
What is the attribute value of an active business with a low review count and 3 stars which is located at Goodyear, AZ? | SELECT DISTINCT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state = 'AZ' AND T1.city = 'Goodyear' AND T1.active = 'true' AND T1.stars = 3 AND T1.review_count = 'Low' |
In the players, how many were out by hit wicket? | SELECT Player_Out FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE Out_Name = 'hit wicket' |
What competition is located in bamako? | SELECT competition FROM table_name_68 WHERE location = "bamako" |
Among the clients born between 1980 and 2000, list the name of male clients who complained through referral. | SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year BETWEEN 1980 AND 2000 AND T1.sex = 'Male' AND T2.`Submitted via` = 'Referral' |
What was the serve time for the complaint call from client "C00007127" on 2017/2/22? | SELECT T1.ser_time FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Client_ID = 'C00007127' AND T1.`Date received` = '2017-02-22' |
What is the earliest year that had the Legend of Zelda: Twilight Princess game? | SELECT MIN(year) FROM table_name_90 WHERE game = "the legend of zelda: twilight princess" |
What was the total amount of sales handled by Nancy Davolio in December 1996, excluding discounts? | SELECT SUM(T3.UnitPrice * T3.Quantity) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.FirstName = 'Nancy' AND T1.LastName = 'Davolio' AND T2.OrderDate LIKE '1996-12%' AND T3.Discount = 0 |
What is the highest silver total for nations with 3 total and over 2 bronze? | SELECT MAX(silver) FROM table_name_47 WHERE total = 3 AND bronze > 2 |
What's #14 FitzBradshaw Racing's top 5 result? | SELECT MAX(top_5) FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing" |
What is the total number of Weight(s), when Block is 300? | SELECT COUNT(weight) FROM table_name_26 WHERE block = 300 |
On what Date was the Record 9–6–4? | SELECT date FROM table_name_62 WHERE record = "9–6–4" |
What is the Position of Pick #321? | SELECT position FROM table_name_97 WHERE pick__number = 321 |
Which network has s analyst of eddie arcaro? | SELECT network FROM table_22514845_4 WHERE s_analyst = "Eddie Arcaro" |
Who among the players in season 2000-2001 has committed the highest rule violations or penalty minutes? | SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' ORDER BY T1.PIM DESC LIMIT 1 |
How many different markets are there? | select count ( distinct market_id ) from phone_market |
Who provided lyrics or music to the artist Cube? | SELECT lyrics__l____music__m_ FROM table_name_46 WHERE artist = "cube" |
What is the color of the background of the white border and sign of information? | SELECT background_colour FROM table_name_25 WHERE border = "white" AND type_of_sign = "information" |
Please list the genre of the movies that are directed by the directors with the highest level of average revenue. | SELECT T2.genre FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.avg_revenue = 4 |
How many laps did Mattia Pasini ride? | SELECT MIN(laps) FROM table_name_16 WHERE rider = "mattia pasini" |
Find the id of the courses that do not have any prerequisite? | SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq |
On what date was the venue at Brisbane Cricket Ground? | SELECT date FROM table_name_23 WHERE venue = "brisbane cricket ground" |
What neon has an Argon of 4.203? | SELECT neon FROM table_name_89 WHERE argon = "4.203" |
When was the order with the highest amount of total price shipped? | SELECT T2.l_shipdate FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 1 |
Show names for all employees who have certificate of Boeing 737-800. | SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" |
What is the heat for the time 57.97? | SELECT heat FROM table_name_62 WHERE time = "57.97" |
What was the home team score for the Richmond away team? | SELECT home_team AS score FROM table_name_50 WHERE away_team = "richmond" |
Who had the high assists against charlotte? | SELECT high_assists FROM table_13557843_3 WHERE team = "Charlotte" |
can you tell me how many degrees have been granted for each Orange county campus since the year 2000? | SELECT T1.campus , sum ( T2.degrees ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = "Orange" AND T2.year > = 2000 GROUP BY T1.campus |
What colleges do the players play for? | * I have left the chat * | Yes, please | SELECT distinct College FROM match_season |
What is the name of the contact person of the Pavlova supplier company? | SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Pavlova' |
List out genre that have downloads more than 1000000000. | SELECT Genres FROM playstore WHERE Installs = '1,000,000,000+' GROUP BY Genres |
What is the final score when 22210 is the attendance? | SELECT final_score FROM table_23612439_2 WHERE attendance = 22210 |
Among the providers in Argentina, which supplier has an account that is in debt? | SELECT T1.s_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'ARGENTINA' |
How many characteristics does the product named "laurel" have? | 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 t1.product_name = "laurel" |
What's the number of the episode directed by Whitney Ransick? | SELECT _number FROM table_2345558_1 WHERE director = "Whitney Ransick" |
Find the name of the user who gave the highest rating. | SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1 |
What are the names of the artists? | SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING count ( * ) > = 1 |
Which away team played against the home team of St Kilda? | SELECT away_team FROM table_name_66 WHERE home_team = "st kilda" |
Which co-stars did Kalyanji-anandji direct in 1963? | SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963" |
What are the names of the instructors in the Comp. Sci. department who earn more than 80000? | SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 |
Which Opened has a Category of diesel light rail? | SELECT MAX(opened) FROM table_name_3 WHERE category = "diesel light rail" |
Who is the player of the match at canberra stadium? | SELECT player FROM table_name_89 WHERE venue = "canberra stadium" |
Return the names of cities, ordered alphabetically. | SELECT Name FROM city ORDER BY Name ASC |
what is the city id of alberta district? | SELECT distinct city_id from address where district = "Alberta" |
What was the top place with over 24 points and more than 14 played? | SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14 |
What is the rank of manager Rob Mcdonald? | SELECT COUNT(rank) FROM table_1218784_1 WHERE manager = "Rob McDonald" |
display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. | SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id |
Find the first name of student who is taking classes from accounting and Computer Info. Systems departments | SELECT T1.stu_fname 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 JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname 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 JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.