sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
List out the all technician name | SELECT Name FROM technician |
Who wrote episode 23 of the season? | SELECT written_by FROM table_29436007_1 WHERE no_in_season = 23 |
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097? | SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097 |
Name the average rank for west germany when gold is more than 1 | SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 1 |
Which cities hosted at least 3 Olympic games? | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.id HAVING COUNT(T1.games_id) >= 3 |
Who is the commanding officer in the district with the highest number of disorderly conduct? | SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Disorderly Conduct' AND T2.fbi_code_no = 24 GROUP BY T2.fbi_code_no ORDER BY COUNT(T1.district_no) DESC LIMIT 1 |
How many students have personal names that contain the word "son"? | SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%" |
What was the method of elimination for Kofi Kingston/ | SELECT method_of_elimination FROM table_24628683_2 WHERE wrestler = "Kofi Kingston" |
What is the number of the dail with 61 seats? | SELECT dáil FROM table_name_55 WHERE seats = 61 |
How many different loser names are there? | SELECT count(DISTINCT loser_name) FROM matches |
Thank you! Can you filter that list to show only the entries with a rank that is higher than 3 please? | Are you looking for ranks that are better than 3 or higher in value than 3? | I would like to filter the list to show the entries which have a rank value that is higher than 3 please. | SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 |
Which of the film released in 2008 scored the highest? | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2008 ORDER BY T1.rating_score DESC LIMIT 1 |
Tell me the bullet tip color of headstamp id of h1z | SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = "h1z" |
Against what team did the Islanders have a 5-18-5 record? | SELECT opponent FROM table_27539535_5 WHERE record = "5-18-5" |
Which player has a subtotal of more than 3 and more than 8 in round 1? | SELECT player FROM table_name_59 WHERE subtotal > 3 AND round_1 > 8 |
How many students have a food allergy? | SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food" |
How many clients from Mozambique required orders with a low priority order? | SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey INNER JOIN orders AS T3 ON T1.c_custkey = T3.o_custkey WHERE T2.n_name = 'MOZAMBIQUE' AND T3.o_orderpriority = '5-LOW' |
What are the names of all directors whose movies have been reviewed by Sarah Martinez? | SELECT DISTINCT T2.director 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 = 'Sarah Martinez' |
how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%? | SELECT COUNT(party) FROM table_2668347_14 WHERE candidates = "Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%" |
What are the ids and durations of the trips with the top 3 durations? | SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3 |
Show the country of appelations Amador County? | SELECT county FROM APPELLATIONS WHERE appelation = 'Amador County' |
What year had an Allison B400R transmission and a model of BRT? | SELECT year FROM table_19643196_1 WHERE transmission = "Allison B400R" AND model = "BRT" |
Give me the nationality of the unemployed people | SELECT Nationality FROM people WHERE People_ID NOT IN ( SELECT People_ID FROM employment ) |
What is the party of the representative that has the smallest number of votes. | SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes ASC LIMIT 1 |
Show all card type codes and the number of cards in each type. | SELECT card_type_code, COUNT(*) FROM Customers_cards GROUP BY card_type_code |
What are the trains names that go to chennai? | SELECT name FROM train WHERE destination = 'Chennai' |
List down all of the venues in Mumbai. | SELECT T2.Venue_Name FROM City AS T1 INNER JOIN Venue AS T2 ON T2.City_Id = T1.City_Id WHERE T1.City_Name = 'Mumbai' |
What about the visit dates? | SELECT T2.Visit_Date FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent" |
What was the decision of the game with Washington as the visitor team on October 13? | SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13" |
Please list the titles of the Wikipedia pages on the Catalan language with more than 4000 words. | SELECT title FROM pages WHERE lid = 1 AND words > 4000 |
What are the different template type codes, and how many templates correspond to each? | SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code |
Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″? | SELECT constellation FROM table_name_3 WHERE ngc_number < 2775 AND declination___j2000__ = "°05′07″" |
What novelty has USA as the location, and coryloides as the name? | SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides" |
Which customers have the substring "Diana" in their names? Return the customer details. | SELECT customer_details FROM customers WHERE customer_details LIKE "%Diana%" |
What is the name of the longest movie title? When was it released? | SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1 |
What is the average 1st place with a Rank that is larger than 10? | SELECT AVG(1 AS st_place) FROM table_name_26 WHERE rank > 10 |
In which division was the match between Hibernian, the away team, and Hearts, the home team, played? To which country does this division belong? | SELECT DISTINCT T2.division,T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Hearts' AND T1.AwayTeam = 'Hibernian' |
I want to know what product has been ordered the greatest number of times. | SELECT * FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count ( * ) DESC LIMIT 1 |
What is the name of country that has the shortest life expectancy in Asia? | SELECT Name FROM country WHERE Continent = "Asia" ORDER BY LifeExpectancy LIMIT 1 |
List all characteristics of product named "sesame" with type code "Grade". | SELECT t3.characteristic_name 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 = "sesame" AND t3.characteristic_type_code = "Grade" |
What was the term of office for noel beaton? | SELECT term_of_office FROM table_name_1 WHERE member = "noel beaton" |
What is the highest death/2013 when the death/2012 is 12,7? | SELECT MAX(death_2013) FROM table_25703_1 WHERE death_2012 = "12,7" |
How much in total had the customers in Italy spent on film rentals? | SELECT SUM(T5.amount) FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN country AS T3 ON T2.country_id = T3.country_id INNER JOIN customer AS T4 ON T1.address_id = T4.address_id INNER JOIN payment AS T5 ON T4.customer_id = T5.customer_id WHERE T3.country = 'Italy' |
What country is Bandar Abbas in? | SELECT country FROM table_name_8 WHERE city = "bandar abbas" |
How many songs have a lead vocal? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead" |
What parties have at least three representatives? | SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3 |
What is the name of the vendor that supplies resources to the project "iMath"? | SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN essays AS T3 ON T1.projectid = T3.projectid WHERE T3.title = 'iMath' |
What was the tie no when the away team was northwich victoria? | SELECT tie_no FROM table_name_21 WHERE away_team = "northwich victoria" |
During what years did Chris Corchiani play in Orlando? | SELECT years_in_orlando FROM table_15621965_3 WHERE player = "Chris Corchiani" |
What is Jeremy Hill's hometown? | SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill" |
What was the attendance on June 27? | SELECT MIN(att) FROM table_name_6 WHERE date = "june 27" |
Which Visitor is listed as having a Date of December 17? | SELECT visitor FROM table_name_13 WHERE date = "december 17" |
what is the country for zhang xiuyun? | SELECT country FROM table_name_91 WHERE athlete = "zhang xiuyun" |
What are the names of all colleges with a larger enrollment than the largest college in Florida? | SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL') |
How many papers are published by the institution "Tokohu University"? | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University" |
Who directed the episode written by karina csolty | SELECT directed_by FROM table_27969432_2 WHERE written_by = "Karina Csolty" |
Where is the history department? | SELECT dept_address FROM department WHERE dept_name = 'History' |
Which negatively correlated, genetically interacting genes are non-essential? What percentage do they represent with respect to those that are essential? | SELECT CAST(COUNT(T1.GeneID) AS REAL) * 100 / ( SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr < 0 ) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr < 0 AND T1.Essential = 'Non-Essential' |
What are the earpads for the headphones that are Reference class and have MSRP of $695? | SELECT earpads FROM table_name_88 WHERE headphone_class = "reference" AND us_msrp = "$695" |
what position requires the least playing time? | SELECT pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos order by min ( T2.HS ) limit 1 |
Define the gender of "student995" and his/her enrolled schools. | SELECT IIF(T2.name IS NULL, 'female', 'male') AS gen , T1.school FROM enrolled AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T1.name = 'student995' |
What was the high assist when the high point was Eric Gordon (21)? | SELECT high_assists FROM table_name_35 WHERE high_points = "eric gordon (21)" |
What's different average revenue status for director who directed the movie that got the most 1 ratings? | SELECT DISTINCT T1.avg_revenue FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 5 |
What is the percentage, by number of sales order units, for orders with quantities not greater than 3 and a discount of 0.2? | SELECT CAST(SUM(CASE WHEN OrderQty < 3 AND UnitPriceDiscount = 0.2 THEN 1 ELSE 0 END) AS REAL) / COUNT(SalesOrderID) FROM SalesOrderDetail |
How many points were there when there more than 6 losses and less than 14 matches? | SELECT COUNT(points) FROM table_name_16 WHERE lost > 6 AND match < 14 |
what is the school for chris mcnamara? | SELECT last_school_college FROM table_29598261_1 WHERE name = "Chris McNamara" |
What was the Constructor for the race that had Derek Warwick as its Fastest Lap? | SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick" |
How many events have happened on the device of the youngest female user? | SELECT COUNT(T1.event_id) FROM events AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T2.gender = 'F' GROUP BY T1.event_id, T2.age ORDER BY T2.age LIMIT 1 |
Which type of weapon was used to attack the victim in the record number 031347-2015? What is the victim's race and gender? | SELECT T1.subject_weapon, T2.race, T2.gender FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T1.case_number = '031347-2015' |
What is the identity of the brighton works built train? | SELECT identity FROM table_name_48 WHERE builder = "brighton works" |
which department has least number of head? tell me department ID,And department name? | select departmentid,name from department order by head limit 1 |
How many viewers watched the 16mm t/r episode? | SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = "16mm t/r" |
What is the name of Rhode Island College's softball stadium? | SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College" |
What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0? | SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0 |
What Band has a Frequency of 0 99.7 in the Area of Newcastle? | SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle" |
How many rounds have Fabio Carbone for fastest lap? | SELECT COUNT(round) FROM table_26137666_3 WHERE fastest_lap = "Fabio Carbone" |
Which home team has a venue of Arden Street Oval? | SELECT home_team FROM table_name_94 WHERE venue = "arden street oval" |
List all students in the air force and which school they were enrolled at. | SELECT T1.name, T1.school FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'air_force' |
What are the first names of all students who are taking classes from both the accounting department and the Computer Info. Systems department? | 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' |
show the maximum amount of memberships for all branches opened in 2011 or located at city location | SELECT max ( membership_amount ) FROM branch WHERE open_year = 2011 OR city = 'London' |
What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A? | SELECT AVG(enrollment_08_09) FROM table_name_28 WHERE previous_counference = "lake" AND ihsaa_class = "3a" |
what are the top 3 highest support rates? | SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 |
What was the date for the pole position of alain prost? | SELECT date FROM table_1140067_2 WHERE pole_position = "Alain Prost" |
How many recipes include the ingredient "graham cracker crumbs"? | SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = 'graham cracker crumbs' |
What is the partially deleted result for a completed construction of m– in St. Maries Creosote? | SELECT partially_deleted FROM table_name_47 WHERE construction_completed = "–" AND name = "st. maries creosote" |
Of all the beer styles produced by Stevens Point Brewery, how many percent do they allot for American Adjunct Lager? | SELECT CAST(SUM(IIF(T1.style = 'American Adjunct Lager', 1, 0)) AS REAL) * 100 / COUNT(T1.brewery_id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Stevens Point Brewery' |
WHAT TEAM WAS AN NCAA CHAMPION? | SELECT team FROM table_name_76 WHERE notes = "ncaa champion" |
What did the Surname Lindberg rank? | SELECT COUNT(rank) FROM table_name_47 WHERE surname = "lindberg" |
What day in November has the game less than 12? | SELECT november FROM table_name_55 WHERE game < 12 |
Count the number of courses in the Physics department. | SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics' |
Show all home cities except for those having a driver older than 40. | SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age > 40 |
How many orders have been shipped through United Package? | SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package' |
What is the largest overall where the position was linebacker and the pick number was more than 9? | SELECT MAX(overall) FROM table_name_32 WHERE position = "linebacker" AND pick__number > 9 |
Name the total number of rnd for kim baker, bobby archer, tommy archer | SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = "Kim Baker, Bobby Archer, Tommy Archer" |
Show the names of people that are on affirmative side of debates with number of audience bigger than 200. | SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 |
What is the most number of cuts made that had more than 7 events played and more than 2 top-25s? | SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 |
Show the name for regions and the number of storms for each region. | SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id |
Who broadcasts in malaysia? | SELECT broadcaster FROM table_name_12 WHERE territory = "malaysia" |
What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have? | SELECT processor FROM table_199666_1 WHERE wireless_lan = "Intel centrino Wireless-N 105" |
What is the department description for the one whose name has the word computer? | SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.