sentence
stringlengths
3
347
sql
stringlengths
18
804
Provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.
SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 3 AND T2.OBJ_CLASS = 'keyboard'
Find the customer id of Savannah?
SELECT customer_id FROM customers where customer_name = "Savannah"
Of the movies in which Reese Kilmer acted, what percentage are action movies?
SELECT CAST(SUM(IIF(T4.name = 'Action', 1, 0)) AS REAL) * 100 / COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film_category AS T3 ON T2.film_id = T3.film_id INNER JOIN category AS T4 ON T3.category_id = T4.category_id WHERE T1.first_name = 'Reese' AND T1.last_name = 'Kilmer'
What Engine has a Power of 114hp (85kw)?
SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)"
What is the time in Romania that has a lane larger than 4?
SELECT time FROM table_name_4 WHERE lane > 4 AND nationality = "romania"
How many entries are there for class when the prior experience is shasta h.s.
SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = "Shasta H.S."
Show the nations that have both hosts older than 45 and hosts younger than 35.
SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35
Show the outcome details of the Table Name: Project Outcomes
SELECT outcome_details FROM project_outcomes
What is the away team when solon was the home team?
SELECT away_team FROM table_name_63 WHERE home_team = "solon"
Which customer status code has least number of customers?
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?
SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in"
Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9
SELECT hand_guards FROM table_name_8 WHERE name = "ar-15a2 government carbine" AND barrel_twist = "1:9"
What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?
SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11
How many wins when the draws are less than 1 and more than 4 losses?
SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses > 4
can you show me a list of share count?
SELECT share_count FROM TRANSACTIONS
Which Country has a Result of nominated, an Award of 17th bangkok critics assembly awards, and a Category of best screenplay?
SELECT country FROM table_name_75 WHERE result = "nominated" AND award = "17th bangkok critics assembly awards" AND category = "best screenplay"
What are the full names of the patients who started taking Yaz 28 Day Pack in 2011?
SELECT DISTINCT T1.first, T1.last, T1.suffix FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Yaz 28 Day Pack' AND strftime('%Y', T2.START) = '2011'
Name the school/club team/country for the player that is 6-5 ft
SELECT school_club_team_country FROM table_name_11 WHERE height_in_ft = "6-5"
What is the GDP per capita in Switzerland?
SELECT T2.GDP / T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland'
What is the average price for each type of product?
SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code
Is the ingredient "graham cracker crumbs" optional in the recipe "Raspberry Chiffon Pie"?
SELECT T2.optional FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T3.name = 'graham cracker crumbs'
What office is Jon Huntsman a candidate for?
SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman"
Show names of teachers that teach at least two courses.
SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2
Find the name of bank branch that provided the greatest total amount of loans.
SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1
What are the total number of Domestic Passengers of airports that contain the word "London".
SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%"
What was the percentage of safari when internet explorer was 20.27%?
SELECT safari FROM table_name_98 WHERE internet_explorer = "20.27%"
List by their id all businesses that are open on Sunday.
SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.day_id = 1
What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?
SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')
Name all the project titles whereby project materials are intended mainly for literary.
SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Literacy'
Show the names of journalists and the names of the events they reported in ascending order
SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC
Which Points have a Drawn larger than 0, and a Lost larger than 1?
SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1
List the season, home team, away team of all the games.
SELECT season , home_team , away_team FROM game
Which race did Bill Holland win in 1946?
SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = "bill holland"
What are all the tracks?
SELECT * FROM tracks
What is the product description of the product booked with an amount of 102.76?
SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76
What is the horsepower of the car with the greatest accelerate?
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;
The ward represented by which alderman had more incidents in January, 2018, Pat Dowell or Sophia King?
SELECT T1.alderman_first_name, T1.alderman_last_name, COUNT(T1.ward_no) AS num FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE (SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' AND T1.alderman_first_name = 'Pat' AND T1.alderman_last_name = 'Dowell') OR (T1.alderman_first_name = 'Sophia' AND T1.alderman_last_name = 'King') GROUP BY T1.ward_no
How many winners did I Dessau Autobahnspinne have?
SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = "I Dessau Autobahnspinne"
What is Place, when Player is "Ben Crenshaw"?
SELECT place FROM table_name_99 WHERE player = "ben crenshaw"
What is the population for the place with an area of 2.33 km2?
SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = "2.33"
What district did James O'Connor belong to?
SELECT district FROM table_1342451_16 WHERE incumbent = "James O'Connor"
Name the air date that chris long directed
SELECT original_air_date FROM table_18569389_1 WHERE directed_by = "Chris Long"
What is detail of the student who registered the most number of courses?
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
What is the name of the artist with the greatest number of albums?
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
Which countries in europe have at least 3 car manufacturers?
SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;
Return the completion date for all the tests that have "Fail" result.
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"
Name the episode number for tasers and mind erasers
SELECT episode_number_production_number FROM table_24222929_4 WHERE title = "Tasers and Mind Erasers"
how many region are presented on the table
select count ( * ) from region
Name the poor law union for area being 332
SELECT COUNT(poor_law_union) FROM table_30120559_1 WHERE area__acres__ = 332
What is the name of the most recent movie?
SELECT title FROM Movie WHERE YEAR = (SELECT MAX(YEAR) FROM Movie)
Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1
SELECT SUM(rank) FROM table_name_90 WHERE bronze < 1 AND gold = 1 AND total < 1
Can you list the student ids and their allergies?
SELECT stuid, allergy from has_allergy
What episode number had 14.41 million viewers?
SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = "14.41"
Please name the latest historical work.
SELECT LongTitle FROM works WHERE GenreType = 'History' ORDER BY Date DESC LIMIT 1
Which constructor has 10-12 rounds and a M7A chassis?
SELECT constructor FROM table_name_40 WHERE rounds = "10-12" AND chassis = "m7a"
Which Season has 95 Points?
SELECT season FROM table_name_48 WHERE points = "95"
Who was the earliest user created a list but didn't get any followers? Give the user ID.
SELECT user_id FROM lists_users WHERE user_subscriber = 0 ORDER BY list_creation_date_utc LIMIT 1
Which brand in 2012 has the lowest star rating and contains cane sugar as well as honey?
SELECT DISTINCT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.CaneSugar = 'TRUE' AND T1.Honey = 'TRUE' AND T2.StarRating = 1 AND T2.ReviewDate LIKE '2012%'
What Tournament had a Winning score of –6 (73-68-72-69=282)?
SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282)
what is the song when the points is more than 64, the national final is 4th and draw is more than 3?
SELECT song FROM table_name_50 WHERE points > 64 AND national_final = "4th" AND draw > 3
How many sales transactions were given by the customer named Joe L. Lopez?
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Joe' AND T2.MiddleInitial = 'L' AND T2.LastName = 'Lopez'
Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.
SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank
What country was the player in t10 place with a score of 66-72-70=207?
SELECT country FROM table_name_12 WHERE place = "t10" AND score = 66 - 72 - 70 = 207
Return the names and ids of customers who have TN in their address.
SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE "%TN%"
What is the Score that has a Player of Ernie Els?
SELECT score FROM table_name_28 WHERE player = "ernie els"
What are the names of instructors who earn more than at least one instructor from the Biology department?
SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology')
WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?
SELECT vale_royal FROM table_name_20 WHERE religion = "jewish"
Please tell me the number of undergraduates from each campus in the year 2004
SELECT t2.campus, sum ( t1.graduate ) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 group by t2.Campus
How many players are from each country?
SELECT count(*) , country_code FROM players GROUP BY country_code
What are the sale details and dates of transactions with amount smaller than 3000?
SELECT T1.sales_details , T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000
What is the Date for the Event ept copenhagen?
SELECT date FROM table_name_71 WHERE event = "ept copenhagen"
What is the state name of male graduate in 2011 from a private for profit institution with black students?
SELECT DISTINCT T1.state FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.gender = 'M' AND T2.race = 'B' AND T1.control = 'Private for-profit' AND T2.year = 2011
What are the project ids of those?
SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * ) > = 3
List the phone number of the customer who placed orders with a total price of more than $300,000.
SELECT T2.c_phone FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice > 300000
Where was the successor formally installed on December 3, 1858?
SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = "December 3, 1858"
Among the menu pages of "Ritz Carlton", how many of them have a width of over 1000?
SELECT SUM(CASE WHEN T1.name = 'Ritz Carlton' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.full_width > 1000
What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?
SELECT DISTINCT T2.title 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 = 'Brittany Harris' OR T2.year > 2000
What was the regular season name where they did not qualify for the playoffs in 2009?
SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009
What is the name of the department with the most students minoring in it?
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1
The person with a Height of 6-8 went to which School?
SELECT school FROM table_name_67 WHERE height = "6-8"
How many districts had results related to incumbent Toby Roth?
SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = "Toby Roth"
How many points has more than 15 wins and less than 10 losses?
SELECT points FROM table_name_54 WHERE wins > 15 AND losses < 10
When did the United Kingdom format a stereo LP?
SELECT date FROM table_name_29 WHERE region = "united kingdom" AND format = "stereo lp"
What is the Diligence Virtues Gloss?
SELECT gloss FROM table_name_22 WHERE virtue = "diligence"
What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"?
SELECT opponent FROM table_name_67 WHERE location_attendance = "mellon arena - 17,132"
Who is the runner-up in 1901?
SELECT runner_up FROM table_name_78 WHERE year = "1901"
Please list the names of those clubs that do not have any players.
SELECT name FROM CLub WHERE Club_ID NOT IN ( SELECT Club_ID FROM player )
Thanks! Now can you add to that list the student capacity of each of those dormitories?
SELECT avg ( T1.age ) , T3.dorm_name, T3.student_capacity FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name
What are the first name, last name, and phone number of all the female faculty members?
SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'
What was the title of the episode written by Robert Haywood?
SELECT title FROM table_name_83 WHERE written_by = "robert haywood"
What is the highest value under the column goals against?
SELECT MAX(goals_against) FROM table_1255110_7
Who were the crew for the Falcon?
SELECT crew FROM table_name_87 WHERE lunar_lander = "falcon"
What are the departure and arrival dates of all flights from LA to Honolulu?
SELECT departure_date , arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
What's the highest enrollment among the schools?
SELECT MAX(enrollment) FROM table_1971074_1
Who is the 92.5 with the press 282.5?
SELECT 925 FROM table_name_44 WHERE press = "282.5"
what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ
SELECT telugu_name_తెలుగు FROM table_201400_2 WHERE kannada_name_ಕನ್ನಡ = "Utthara ಉತ್ತರ"
Which production company produced the movie that made the most money at the box office?
SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id GROUP BY T1.company_id ORDER BY SUM(T3.revenue) DESC LIMIT 1
Provide the air carrier description of the flight with a tail number N922US from Phoenix.
SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T2.Code = T1.OP_CARRIER_AIRLINE_ID WHERE T1.TAIL_NUM = 'N922US' AND T1.ORIGIN = 'PHX' GROUP BY T2.Description
Find all types of store and number of them.
SELECT TYPE, COUNT(*) FROM store GROUP BY TYPE
How many liked by people does the solution path "ninject_Ninject\Ninject.sln " have?
SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_NinjectNinject.sln'