sentence
stringlengths
3
347
sql
stringlengths
18
804
On what date did Limerick play in the All-Ireland Final game?
SELECT date FROM table_name_38 WHERE opposition = "limerick" AND game = "all-ireland final"
Which country is ranked 56 overall and has a heat rank smaller than 8?
SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56"
What was the smallest grid for Prince bira?
SELECT MIN(grid) FROM table_name_29 WHERE driver = "prince bira"
What was the average crowd size of games held at Glenferrie Oval?
SELECT AVG(crowd) FROM table_name_43 WHERE venue = "glenferrie oval"
What is the id of the product that was ordered the most often?
SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1
What Russian has a Ratio of 40?
SELECT russian FROM table_name_60 WHERE ratio = "40"
Which Crowd has an Away team of st kilda?
SELECT crowd FROM table_name_28 WHERE away_team = "st kilda"
What is the lowest overall number for total(min. 2 medals)?
SELECT MIN(total_min_2_medals_) FROM table_22355_65
Which Score has an Opponent of @ la lakers, and a Record of 8-6?
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-6"
List down the customer ids who placed order with Michael Suyama.
SELECT T2.CustomerID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama'
Which Week has an Attendance of 63,447?
SELECT week FROM table_name_35 WHERE attendance = "63,447"
What is the full name of the professor who graduated from an Ivy League School?
SELECT first_name, last_name FROM prof WHERE graduate_from IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' )
What tries against value does burry port rfc have?
SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc"
Which Capacity has a Location of mogilev?
SELECT SUM(capacity) FROM table_name_38 WHERE location = "mogilev"
What is the area code of the city with the largest land area?
SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.land_area = ( SELECT MAX(land_area) FROM zip_data )
What is the title that was first published in August 2010?
SELECT title FROM table_name_39 WHERE first_issue = "august 2010"
What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?
SELECT MIN(goals_for) FROM table_name_25 WHERE wins > 15 AND goal_difference > 35
Who had the highest rebounds on December 30?
SELECT high_rebounds FROM table_name_4 WHERE date = "december 30"
What Time has Ad Freq of 15 minutes, and a Show Name of country today?
SELECT time FROM table_name_37 WHERE ad_freq = "15 minutes" AND show_name = "country today"
What is the Format(s) of the release on September 23, 2008?
SELECT format_s_ FROM table_name_40 WHERE date = "september 23, 2008"
What record has march 30 as the date?
SELECT record FROM table_name_1 WHERE date = "march 30"
What is the difference in the average number of players out by lbw and runout in the matches?
SELECT AVG(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T2.Out_Name = 'lbw'
What is the Hanja for the sakju province?
SELECT hanja FROM table_name_78 WHERE province = "sakju"
How many Jewish residents are there in Moldova?
SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Moldova' AND T2.Name = 'Jewish'
What are the name, latitude, and city of the station with the lowest latitude?
SELECT name , lat , city FROM station ORDER BY lat LIMIT 1
What is the maximum, minimum and average years spent working on a school bus?
SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus
Find the location of businesses that has business hours from 7 am to 7 pm every Wednesday.
SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '7AM' AND T2.closing_time = '7PM' AND T3.day_of_week = 'Wednesday'
Can you show me how many documents there are in total?
SELECT count ( * ) FROM documents
What was the best discount applied to sales orders in 2020?
SELECT MAX(`Discount Applied`) FROM `Sales Orders` WHERE OrderDate LIKE '%/%/20'
Which teams have winning rate less than 50%?
SELECT name FROM teams WHERE CAST(won AS REAL) * 100 / (won + lost) < 50
How many countries have a republic as their form of government?
SELECT COUNT(*) FROM country WHERE GovernmentForm = "Republic"
Find the name of the most expensive hardware product.
SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1
List all the pay rates of all employees that were hired at 20 years of age.
SELECT T2.Rate FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) = 20
What are the names and trade names of the medicines which has 'Yes' value in the FDA record?
SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes'
What are the highest number of games drawn for games numbered under 6?
SELECT MAX(drawn) FROM table_name_80 WHERE games < 6
Which weight class had a time of 4:59?
SELECT weight_class FROM table_name_65 WHERE time = "4:59"
In what competition was the score reported as 12.8 (80) - 8.7 (55)?
SELECT competition FROM table_name_30 WHERE score = "12.8 (80) - 8.7 (55)"
Can you tell me the name of the driver who is driving the school bus with the longest working history?
SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1
For the lists that got more than 3000 followers, how many did the users who created those lists are paying subscribers?
SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 3000 AND T1.user_has_payment_method = 1
return the smallest salary for every departments.
SELECT MIN(salary) , department_id FROM employees GROUP BY department_id
Give average earnings of poker players who are taller than 200.
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
What is Status, when Area km 2 is greater than 303.73?
SELECT status FROM table_name_93 WHERE area_km_2 > 303.73
Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift".
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')
What is the total amount of Gold from guatemala and silver smaller than 0?
SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 0
What is the number of faculty at Long Beach State University in 2002?
SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State University"
Who were the opponents when the record was 11-2?
SELECT opponent FROM table_22862203_2 WHERE record = "11-2"
What countries are the female artists who sung in the language Bangla from?
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla"
What is the highest win percentage when there were 23 losses?
SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23
Where was the player from se missouri state drafted?
SELECT COUNT(pick__number) FROM table_24540893_6 WHERE school = "SE Missouri State"
What is the pick number of the defensive back?
SELECT COUNT(overall_pick__number) FROM table_12165135_1 WHERE position = "Defensive Back"
Can you filter this list to show the name of the shop that has the largest quantity of stock, and please also display the quantity of stock?
SELECT T2.Shop_Name,T1.quantity FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM ( T1.quantity ) DESC LIMIT 1
What is the room number of Biology?
SELECT Room FROM DEPARTMENT WHERE DName = "Biology"
What are the total points of gymnasts, ordered by their floor exercise points descending?
SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
In what year was Lesli Margherita nominated?
SELECT SUM(year) FROM table_name_90 WHERE nominee = "lesli margherita"
Which weather station does the store that sold the highest quantity of item 9 belongs to?
SELECT station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.item_nbr = 9 GROUP BY T2.station_nbr ORDER BY SUM(T1.units) DESC LIMIT 1
Thank you! Can you tell me what the average typical selling price is of all of the product types? | do you mean the average typical selling price of all product category code? | Yes! Can you provide me with the average typical selling price of all product category code?
select product_category_code, avg ( typical_buying_price ) from Products group by product_category_code
Return the phone numbers for all customers and suppliers.
SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers
When was there a Result of 8–0 and a Score of 1–0?
SELECT date FROM table_name_48 WHERE result = "8–0" AND score = "1–0"
What is the name of the customer who has made the largest amount of claim in a single claim?
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)
What was the opponent for the tournament of taranto?
SELECT opponent FROM table_name_97 WHERE tournament = "taranto"
what is the frequency when the city of license is belleville?
SELECT frequency FROM table_name_42 WHERE city_of_license = "belleville"
What is the winning song for the artist with a debut album "mike"?
SELECT winning_song FROM table_1646960_3 WHERE debut_album = "Mike"
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11
Please list the names of all the neighborhoods in the community area with the most population.
SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T2.community_area_no ORDER BY T2.population DESC LIMIT 1
What chassis has the year 1987?
SELECT chassis FROM table_name_87 WHERE year = 1987
What is the first and second line for all addresses?
SELECT line_1 , line_2 FROM addresses
How many employees are there?
SELECT count(*) FROM employee
Hi, can you please tell me which country has a manager of age above 50?
SELECT Country FROM manager WHERE Age > 50
How many touchdowns did Redden score?
SELECT MIN(touchdowns) FROM table_14342210_12 WHERE player = "Redden"
What is Jockey, when Time is 1:15.89?
SELECT jockey FROM table_name_55 WHERE time = "1:15.89"
What's the authority when the roll is less than 234 for the massey east area?
SELECT authority FROM table_name_79 WHERE roll < 234 AND area = "massey east"
What year was the comp 33?
SELECT year FROM table_name_99 WHERE comp = "33"
What ranking is james franklin?
SELECT rank FROM table_name_69 WHERE player = "james franklin"
Can you tell me the Competing entities that has the First held smaller than 1970?
SELECT competing_entities FROM table_name_4 WHERE first_held < 1970
List the names, color descriptions and product descriptions of products with category "Herbs".
SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs"
what is the highest unit price?
SELECT max ( unitprice ) from Track
Which director had the most popular film from 1937 to 1990?
SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name INNER JOIN movies_total_gross AS T3 ON T3.movie_title = T1.movie_title WHERE SUBSTR(T3.release_date, LENGTH(T3.release_date) - 3, LENGTH(T3.release_date)) BETWEEN '1937' AND '1990' ORDER BY CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
What are the number of losses that have Ties of 1 and 3 or more poll wins?
SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3
What is the highest salary and what employee id has it?
select EMPLOYEE_ID,SALARY from employees order by salary desc limit 1
Can you add to the table the phone ids from the table phone market that are associated with each market id?
SELECT t1.market_id,t1.district,t2.phone_id from market as t1 join phone_market as t2 on t1.market_id = t2.market_id
Please list the IDs of the universities with the top 3 female students percentage in 2011.
SELECT university_id FROM university_year WHERE year = 2011 ORDER BY pct_female_students DESC LIMIT 3
What is the total of bronze medals from nations with more than 16 total medals and ranks larger than 3?
SELECT COUNT(bronze) FROM table_name_68 WHERE total = 16 AND rank > 3
What is RJCM's IATA?
SELECT iata FROM table_name_76 WHERE icao = "rjcm"
Name the location attendance for 22-8
SELECT location_attendance FROM table_22654073_7 WHERE record = "22-8"
The head coach, steve radoslavic, is related to which websites?
SELECT website FROM table_11365528_2 WHERE head_coach = "Steve Radoslavic"
What is the largest silver from Malaysia with a Total smaller than 23?
SELECT MAX(silver) FROM table_name_34 WHERE nation = "malaysia" AND total < 23
What place for roger pontare?
SELECT place FROM table_name_62 WHERE artist = "roger pontare"
What is the rating of the show ranked tba, aired on April 21, 2009?
SELECT rating FROM table_name_63 WHERE rank___number_ = "tba" AND air_date = "april 21, 2009"
List the names of representatives that have not participated in elections listed here.
SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)
What team has a grid of 15?
SELECT team FROM table_name_6 WHERE grid = 15
What is the Result of the game with an Attendance of 55,353?
SELECT result FROM table_name_53 WHERE attendance = "55,353"
Please list the names of all the dishes that appeared on the menu "Zentral Theater Terrace".
SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Zentral Theater Terrace'
Which club has the most members majoring in "600"?
SELECT t1.clubname 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 t3.major = "600" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
Which Competition has a Venue of Seoul, and Result of 4-1?
SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1"
What is the discounted price of the part "burnished seashell gainsboro navajo chocolate" in order no.1?
SELECT T1.l_extendedprice * (1 - T1.l_discount) FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate' AND T1.l_orderkey = 1
What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?
SELECT MIN(votes) FROM table_name_97 WHERE rank = "5th" AND occupation = "retired" AND riding = "brant"
What is the max torque of model 1.4 16v?
SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v"
How many roles are there?
SELECT count(*) FROM ROLES
What College/Junior/Club Team has Pick 50 before Round 8?
SELECT college_junior_club_team FROM table_name_19 WHERE round < 8 AND pick = 50
What is the maximum number of final tables made among poker players with earnings less than 200000?
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000