sentence
stringlengths
3
347
sql
stringlengths
18
804
What was the high rebounds from the date of April 14?
SELECT high_rebounds FROM table_name_29 WHERE date = "april 14"
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT"
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
what is the location when the time is 3:15?
SELECT location FROM table_name_7 WHERE time = "3:15"
Which player became the man of the series in the year 2012? Give the name and country of this player.
SELECT T2.Player_Name, T3.Country_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Season_Year = 2012
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?
SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7
What are the first names of the professors who do not play Canoeing or Kayaking as activities?
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
What are the names and decor of rooms with a king bed? Sort them by their price
SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;
What is the Record on July 12?
SELECT record FROM table_name_10 WHERE date = "july 12"
show names of all aircrafts?
select name from aircraft
In Shakespeare's works before 1600, list down the title of the tragic story he had written that involved a character named "Tybalt".
SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.DATE < 1600 AND T1.GenreType = 'Tragedy' AND T4.CharName = 'Tybalt'
Which winning team has Iowa city as the site, and december 3, 2006 as the date?
SELECT winning_team FROM table_name_42 WHERE site = "iowa city" AND date = "december 3, 2006"
How many rooms cost more than 120, for each different decor?
SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;
What is the sum of all crowds present at the Glenferrie Oval venue?
SELECT SUM(crowd) FROM table_name_35 WHERE venue = "glenferrie oval"
What is the average rank when the bronze is larger than 1, and silver is less than 0?
SELECT AVG(rank) FROM table_name_52 WHERE bronze > 1 AND silver < 0
What is the location of the Id no-1?
SELECT Location FROM party where Party_ID = 1
What is the linearized sequenced of API calls of the method whose solution path is "mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln"?
SELECT T2.ApiCalls FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln'
What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active?
SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = "United Nations Observer Mission Uganda-Rwanda"
And on which date was this policy opened?
SELECT t2.date_opened FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel"
What is the deleted for tolland?
SELECT deleted FROM table_name_71 WHERE county = "tolland"
Who is the company's highest-paid single female employee? Include her full name and job title.
SELECT T3.FirstName, T3.MiddleName, T3.LastName, T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'S' AND T1.Gender = 'F' ORDER BY T2.Rate DESC LIMIT 1
Hmm, which poll source did this candidate belong to?
SELECT poll_source FROM candidate ORDER BY oppose_rate LIMIT 1
What was the date when the against was 3?
SELECT date FROM table_name_35 WHERE against = 3
What was the score on a clay surface on May 29, 2006?
SELECT score FROM table_name_5 WHERE surface = "clay" AND date = "may 29, 2006"
When were those branches opened?
SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id
Return the number of airlines in the USA.
SELECT count(*) FROM AIRLINES WHERE Country = "USA"
What years were the Iowa State school/club team have a jazz club?
SELECT years_for_jazz FROM table_11545282_19 WHERE school_club_team = "Iowa State"
What is the id and trade name of the medicines can interact with at least 3 enzymes?
SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3
On what date did the Team Minnesota play?
SELECT date FROM table_17323092_7 WHERE team = "Minnesota"
How many of the cmdlets are the 2008 version?
SELECT COUNT(cmdlets) FROM table_14465871_2 WHERE version = "2008"
Count the number of different nationalities of conductors.
SELECT count(DISTINCT Nationality) FROM conductor
how many origin in the train table
SELECT count ( distinct origin ) FROM train
How many Byes have an Against of 972, and more than 11 wins?
SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11
What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws?
SELECT COUNT(position) FROM table_name_83 WHERE difference = "- 6" AND lost = 3 AND drawn > 4
How many students does each advisor have?
SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor
On December 4, Tampa Bay has a record of 12-13-2.
SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4"
Provide the inspection ID of the establishment named "PIZZA RUSTICA, INC."
SELECT DISTINCT T2.inspection_id FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'PIZZA RUSTICA, INC'
Which one took place on December 3, 1995?
SELECT result FROM table_name_60 WHERE date = "december 3, 1995"
What is the electorates in 2009 for Modi Nagar?
SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = "modi nagar"
What is the lowest number of districts (kecamatan) in the north sulawesi province with more than 1,510 villages?
SELECT MIN(number_of_districts__kecamatan_) FROM table_name_97 WHERE province = "north sulawesi" AND villages > 1 OFFSET 510
Name the height in ft for the player from wyoming
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming"
What player came from Cornell University (NCAA)?
SELECT player FROM table_2897457_2 WHERE college_junior_club_team = "Cornell University (NCAA)"
Who was the Visitor when the Home team was Anaheim on the Date of April 12?
SELECT visitor FROM table_name_49 WHERE home = "anaheim" AND date = "april 12"
What's the version of AutoCAD Architectural Desktop 3?
SELECT version FROM table_19329117_1 WHERE official_name = "AutoCAD Architectural Desktop 3"
What is zip code of customer with first name as Carole and last name as Bernhard?
SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?
SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131
what is the competition when the result is 1-1 and venue is gwangju?
SELECT competition FROM table_name_35 WHERE result = "1-1" AND venue = "gwangju"
Find the number of employees we have.
SELECT count(*) FROM Employees
What is the total price of the order 10100?
SELECT SUM(t.priceEach * t.quantityOrdered) FROM orderdetails t WHERE t.orderNumber = '10100'
What are the bed type of room id RND?
SELECT bedType FROM Rooms where roomid = "RND"
What is the code of the prevalent disease with the highest occurrences?
SELECT T2.code FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T1.ITEM = T2.DESCRIPTION ORDER BY T1.OCCURRENCES DESC LIMIT 1
Name the least attendance for 10 october 2006
SELECT MIN(attendance) FROM table_name_82 WHERE date = "10 october 2006"
What instrument did the musician with last name "Heilo" use in the song "Badlands"?
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
Find the total number of available hotels.
SELECT count(*) FROM HOTELS
What is the literacy rate for groups that grew 103.1% between 1991 and 2001?
SELECT literacy___percentage_ FROM table_10710364_2 WHERE growth__1991_2001_ = "103.1%"
What is the average, minimum, maximum, and total transaction amount?
SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions
Which directors had a movie in either 1999 or 2000?
SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000
Who are the players who were not in the Hall of Fame list.
SELECT firstName, lastName FROM Master WHERE hofID IS NULL
Calculate the total rating of winners in OFTA Television Award and WGA Award (TV).
SELECT SUM(T2.rating) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award_category IN ('Jupiter Award ', 'WGA Award (TV)');
When was the home Los Angeles Lakers?
SELECT date FROM table_name_87 WHERE home = "los angeles lakers"
Please list the names of all the restaurants that have met all requirements in one inspection.
SELECT DISTINCT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100
List the names of journalists who have not reported any event.
SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)
What is the swimsuit score when the interview was 9.74?
SELECT swimsuit FROM table_11884814_3 WHERE interview = "9.74"
What nation started in lane 3 of heat 2?
SELECT nationality FROM table_name_78 WHERE heat = 2 AND lane = 3
How many universities have a location that contains NY?
SELECT count(*) FROM university WHERE LOCATION LIKE "%NY%"
What was the position that Chris Robinson played?
SELECT position FROM table_name_79 WHERE player = "chris robinson"
What about their last names?
select first_name,last_name from employees where first_name LIKE '%z%'
Show all information on the airport that has the largest number of international passengers.
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
What number of voters did the Bronx have when the total number was 2054?
SELECT the_bronx FROM table_1108394_34 WHERE total = 2054
What are the total products value shipped to Brazil by Speedy Express Company?
SELECT SUM(T2.Quantity * T2.UnitPrice) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T3.CompanyName = 'Speedy Express' AND T1.ShipCountry = 'Brazil'
What is the average week on November 7, 1976 with an attendance less than 46,735?
SELECT AVG(week) FROM table_name_94 WHERE date = "november 7, 1976" AND attendance < 46 OFFSET 735
What was the Attendance after Week 7 at Tiger Stadium?
SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = "tiger stadium" AND week > 7
what country is Nou Mestalla in?
SELECT country FROM stadium where name = "Nou Mestalla"
I want to know the catalog number for album and seed records label for cd and title of grey
SELECT catalog_number FROM table_name_66 WHERE format = "album" AND label = "seed records" AND formats = "cd" AND title = "grey"
Which railroad is 112.6 kilometers from kingston?
SELECT name FROM table_16226584_1 WHERE km_from_kingston = "112.6"
Please list any three customers with debt.
SELECT c_name FROM customer WHERE c_acctbal < 0 LIMIT 3
What are the albums produced in year 2010?
SELECT * FROM Albums WHERE YEAR = 2010
In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?
SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year
Which Position has Goals For of 52, and Goals Against larger than 70?
SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70
What kind of Socket has a Order part number of tmrm72dam22gg?
SELECT socket FROM table_name_44 WHERE order_part_number = "tmrm72dam22gg"
Which cities have exactly 3 parks?
SELECT city FROM park GROUP BY city HAVING count ( * ) = 3
Which Method has a Round of 1, and a Record of 4–2?
SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2"
Which round was Tom Morris picked in?
SELECT COUNT(round) FROM table_name_16 WHERE player = "tom morris"
Show the facility codes of apartments with more than 4 bedrooms.
SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4
Give the flight numbers of flights arriving in Aberdeen.
SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen"
At what Site was the Result W13-7?
SELECT site FROM table_name_59 WHERE result = "w13-7"
What is the enrollment for Foote Field?
SELECT MAX(enrollment) FROM table_12896884_1 WHERE football_stadium = "Foote Field"
List all payment methods and number of payments using each payment methods.
SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;
What Russian word translates to bucket?
SELECT russian FROM table_name_34 WHERE translation = "bucket"
Which event happened in 1988?
SELECT name FROM table_name_91 WHERE year = "1988"
What was the series where the game was 5?
SELECT series FROM table_23286158_11 WHERE game = 5
Find the name of people whose age is greater than any engineer sorted by their age.
SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age
How many of the faculties are the rank of professors?
SELECT COUNT ( * ) FROM FACULTY WHERE rank = "Professor"
Show the names of countries and the average speed of roller coasters from each country.
SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name
Return the ids of templates that have the code PP or PPT.
SELECT template_id FROM Templates WHERE template_type_code = "PP" OR template_type_code = "PPT"
What is the average price for a dating application?
SELECT AVG(Price) FROM playstore WHERE Genres = 'Dating'
What are the entry names of catalog with the attribute possessed by most entries.
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)
How many league cup goals for tyrone thompson with 0 FLT goals?
SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = "tyrone thompson" AND flt_goals > 0
What is the IHSAA class for Tipton?
SELECT ihsaa_class FROM table_name_3 WHERE school = "tipton"
What shape has nickel as the metal, and one rupee as the denomination?
SELECT shape FROM table_name_78 WHERE metal = "nickel" AND denomination = "one rupee"