sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
For project titled 'Toot Your Flute!', what is the main subject of the project materials intended for? Name the other projects with the similar focus. | SELECT T2.primary_focus_subject FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'Toot Your Flute!' |
Name the total number of roll for st joseph's school when decile is less than 5 | SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5 |
How many security forces? | SELECT MAX(security_forces) FROM table_21636599_1 |
List all tracks bought by customer Daan Peeters. | SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters"; |
What's the royalty for the bestseller book? | SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1 |
Please show me the name of the highest mountain. | select Name from mountain order by Height desc limit 1 |
Who was the match played against in the final on March 14, 2008? | SELECT opponents_in_the_final FROM table_name_2 WHERE date = "march 14, 2008" |
What is the score of the game that was played on 29 November at State Sports Centre? | SELECT score FROM table_name_29 WHERE date = "29 november" AND venue = "state sports centre" |
How many races were there when Sigachev had 38 points? | SELECT MIN(races) FROM table_25421463_1 WHERE points = "38" |
which Partial thromboplastin time has a Condition of liver failure , early? | SELECT partial_thromboplastin_time FROM table_name_61 WHERE condition = "liver failure , early" |
What team is in the dhl-höllin arena? | SELECT team FROM table_name_5 WHERE arena = "dhl-höllin" |
What are the completion dates of all the tests that have result "Fail"? | SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" |
What is the highest crowd at windy hill? | SELECT MAX(crowd) FROM table_name_51 WHERE venue = "windy hill" |
Find the phone number of all the customers and staff. | SELECT phone_number FROM customers UNION SELECT phone_number FROM staff |
Which track translates to Flemish Women? | SELECT track FROM table_name_96 WHERE translation = "flemish women" |
Which Points have a Record of 21–36–9, and an Attendance larger than 14,768? | SELECT SUM(points) FROM table_name_9 WHERE record = "21–36–9" AND attendance > 14 OFFSET 768 |
Please show the countries and the number of climbers from each country. | SELECT Country , COUNT(*) FROM climber GROUP BY Country |
What is the first name and last name employee helps the customer with first name Leonie? | SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie" |
How many deaths occurred during Darby? | SELECT deaths FROM table_name_64 WHERE storm_name = "darby" |
Tell me the highest week for metropolitan stadium for attendance more than 47,644 | SELECT MAX(week) FROM table_name_80 WHERE venue = "metropolitan stadium" AND attendance > 47 OFFSET 644 |
How many patients with 'allergy to eggs' have been immunized with 'Td (adult) preservative free'? | SELECT COUNT(DISTINCT T2.patient) FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN immunizations AS T3 ON T2.patient = T3.PATIENT WHERE T1.DESCRIPTION = 'Allergy to eggs' AND T3.DESCRIPTION = 'Td (adult) preservative free' |
For each end station id, what is its name, latitude, and minimum duration for trips ended there? | SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id |
What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria? | SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = "charles albert, elector of bavaria" |
Name the vcore for multi 11x | SELECT v_core FROM table_27277284_8 WHERE mult_1 = "11x" |
What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing? | SELECT COUNT(season) FROM table_name_85 WHERE engine = "cosworth" AND team = "kraco racing" |
Find the membership amount of the popert? | did you mean the membership amount of the branch with the name "Popert"? | yes | SELECT membership_amount FROM branch where Name = 'Popert' |
What are these residences? | SELECT distinct Residence FROM player |
That's great. Can you tell me the total number of documents that do have images? | SELECT count ( * ) FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id |
Who was in the original berkley cast while stark sands was in the original broadway cast? | SELECT original_berkeley_cast FROM table_24353141_1 WHERE original_broadway_cast = "Stark Sands" |
what is the order status of George | SELECT T2.order_status FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id where T1.customer_name = "George" |
how many skills are presented on the table | SELECT count ( * ) FROM skills |
Can you list the name and opening year of the branch that opened the earliest? | SELECT name, open_year FROM branch where open_year = ( select min ( open_year ) from branch ) |
If the armor is bronze cuirass , linothorax, what are the close ranged weapons? | SELECT close_ranged_weapons FROM table_27704991_1 WHERE armor = "Bronze cuirass , Linothorax" |
What is the number of gold medals when the number of bronze medals is 8? | SELECT gold FROM table_name_88 WHERE bronze = "8" |
What is the total attendance of each stadium? | SELECT T1.id , sum ( Total_Attendance ) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id |
What is the total number of campuses? | SELECT count(*) FROM campuses |
Which Lead has a Skip of pavol pitonak? | SELECT lead FROM table_name_94 WHERE skip = "pavol pitonak" |
How many orders have been cancelled in 2022? | SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Cancelled' AND STRFTIME('%Y', T2.status_date) = '2022' |
How about the lowest? | SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 |
Who was the opponent for the 2003 davis cup europe/africa group ii? | SELECT opponent FROM table_name_23 WHERE edition = "2003 davis cup europe/africa group ii" |
What is the lowest rank of Qaanaaq, which has a population greater than 231? | SELECT MIN(rank) FROM table_name_28 WHERE population > 231 AND name = "qaanaaq" |
Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10. | SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted) > 100 OR sum(T3.amount) > 10 |
Show cinema name, film title, date, and price for each record in schedule. | SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id |
which countries did participated in both Friendly and Tournament type competitions. | SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' |
What are the ids of the students who attended courses in the statistics department in order of attendance date. | SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance |
What was the away team when the venue was Lake Oval? | SELECT away_team FROM table_name_30 WHERE venue = "lake oval" |
Show the product name and total order quantity for each product. | SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id |
What are the prices on cheese products? | SELECT T2.UnitPrice FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.Description = 'Cheeses' |
What are the titles of the podcasts whose reviews were created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00? | SELECT DISTINCT T1.title FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at BETWEEN '2018-08-22T11:53:16-07:00' AND '2018-11-20T11:14:20-07:00' |
What is the lowest goals against value for a team with 83 points and a difference over 50? | SELECT MIN(goals_against) FROM table_name_31 WHERE points = 83 AND goal_difference > 50 |
How many laps did Jackie Oliver do? | SELECT laps FROM table_name_41 WHERE driver = "jackie oliver" |
What role has the team of Troyes AC Grenoble Foot? | SELECT role FROM table_name_89 WHERE teams = "troyes ac grenoble foot" |
What was the No. 4 name when Madison was No. 5 and Abigail was No. 9? | SELECT no_4 FROM table_name_83 WHERE no_5 = "madison" AND no_9 = "abigail" |
What is the number range for the Gloucester RCW builder introduced in 1937? | SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937" |
Ok, can you show me the list of the source system codes? | SELECT source_system_code FROM CMI_Cross_References |
Who was the home team when walsall was the away team? | SELECT home_team FROM table_name_8 WHERE away_team = "walsall" |
Who were the candidates in the Kentucky 4 voting district? | SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4" |
What player has 1 as the place? | SELECT player FROM table_name_69 WHERE finish = "1" |
Show the number of roller coasters of Australia and Finland. | SELECT T1.Name,count ( * ) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT ( * ) > 1 |
What is the series episode number of the episode with production code 303? | SELECT no_in_series FROM table_16581695_4 WHERE production_code = "303" |
Which Championship has a Scoreboard that is 22-14? | SELECT champion FROM table_name_74 WHERE scoreboard = "22-14" |
When did France come in second? | SELECT second FROM table_name_54 WHERE nation = "france" |
What percentage more for the "Women's Clothing" Yelp businesses to "Men's Clothing"? | SELECT CAST(SUM(CASE WHEN T2.category_name LIKE 'Women''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) - CAST(SUM(CASE WHEN T2.category_name LIKE 'Men''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS "more percentage" FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id |
Name the total number for race caller for bob costas and charlsie cantey | SELECT COUNT(race_caller) FROM table_22514845_2 WHERE trophy_presentation = "Bob Costas and Charlsie Cantey" |
Give the name of the driver of shipment no.1021. | SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1021' |
What is the average amount of appearances for the Bronze Meals less than 0? | SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0 |
Which TV Station has Average Ratings of 16.89%? | SELECT tv_station FROM table_name_54 WHERE average_ratings = "16.89%" |
How many rooms have not had any reservation yet? | SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations) |
What is the smallest number of tries for in a game? | SELECT MIN(tries_for) FROM table_16770037_3 |
Show me the attendance of the team_id CH1? | SELECT attendance FROM home_game where team_id = 'CH1' |
how many females have president votes? | SELECT count ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F" |
What is the artist name of that song? | SELECT artist_name FROM files ORDER BY duration DESC LIMIT 1 |
What were the points for a team that 414 points against? | SELECT points_for FROM table_name_52 WHERE points_against = "414" |
How many cities in total with post code starting with 4? | SELECT count ( distinct city ) FROM addresses WHERE zip_postcode LIKE "4%" |
What is the name of member in charge of greatest number of events? | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 |
Show the number of cities in counties that have a population more than 20000. | SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000) |
How many years did he have an average start of 20.7? | SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7" |
What did the Home team score when they were in MCG? | SELECT home_team AS score FROM table_name_25 WHERE venue = "mcg" |
List the name and country of the players who got more than average catches in ascending order of the number of catches. | SELECT T1.Player_Name, T4.Country_Name FROM Player AS T1 INNER JOIN Wicket_Taken AS T2 ON T1.Player_Id = T2.Fielders INNER JOIN Out_Type AS T3 ON T2.Kind_Out = T3.Out_Id INNER JOIN Country AS T4 ON T1.Country_Name = T4.Country_Id GROUP BY T1.Player_Name ORDER BY COUNT(T3.Out_Name) ASC |
What is the class for trafen in part 3? | SELECT class FROM table_name_49 WHERE part_3 = "trafen" |
What Greek word means the same thing as the German word ebbe? | SELECT greek FROM table_name_99 WHERE german = "ebbe" |
Which Outcome has a Surface of hard (i), and a Date of 28 january 2003? | SELECT outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003" |
Find the locations that have more than one movie theater with capacity above 300. | SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1 |
What are the times of elimination for any instances in which the elimination was done by Punk or Orton? | SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton" |
What is the hardware model name for the phones that were produced by "Nokia Corporation" but whose screen mode type is not Text? | SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type ! = "Text" |
How many silvers have a Nation of hungary, and a Rank larger than 10? | SELECT COUNT(silver) FROM table_name_30 WHERE nation = "hungary" AND rank > 10 |
What is the name of the department with the most credits? | SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1 |
Who is the choreographer with the style pas de deux? | SELECT choreographer_s_ FROM table_name_10 WHERE style = "pas de deux" |
List the names of the top 5 oldest people. | SELECT Name FROM People ORDER BY Age DESC LIMIT 5 |
How many companies are there? | select count ( * ) from Manufacturers |
What is the date of the game with a 17-31 record? | SELECT date FROM table_name_90 WHERE record = "17-31" |
Who directed episode 53 in the series? | SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53 |
What is the name of each course and the corresponding number of student enrollment? | SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name |
what is the most number where the calendar shows october 20 | SELECT high_points FROM table_27733909_1 WHERE date = "October 20" |
How many drawn does the team Corinthians have? | SELECT drawn FROM table_15352382_1 WHERE team = "Corinthians" |
What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? | SELECT year FROM table_name_96 WHERE opponent_in_the_final = "brenda schultz-mccarthy" AND score = "6–7(5), 2–6" |
What is the time of the honda cbr1000rr bike, which has less than 25 laps? | SELECT time FROM table_name_49 WHERE laps < 25 AND bike = "honda cbr1000rr" |
What were the total number of sales for the song 21 Seconds? | SELECT COUNT(sales) FROM table_name_21 WHERE song_title = "21 seconds" |
Great! Can you filter this list to show just the forename and surname of the driver who has the smallest lap time? | SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1 |
what's the id of that song? | SELECT f_id FROM files where duration = "5:23" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.