sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
Which player is from Tampa, Florida? | SELECT player FROM table_name_68 WHERE hometown = "tampa, florida" |
Which Player has a Score of 67 in united states? | SELECT player FROM table_name_17 WHERE score = 67 AND country = "united states" |
Name the minimum total for ireland | SELECT MIN(total) FROM table_1456056_1 WHERE country = "Ireland" |
What is every game on November 21? | SELECT game FROM table_27539535_4 WHERE november = 21 |
Which team is located in missouri and was established in 1963? | SELECT team FROM table_name_99 WHERE state_province = "missouri" AND est = "1963" |
Which couple participated in the Contemporary style of dance? | SELECT couple FROM table_name_27 WHERE style = "contemporary" |
What is the highest draft after round 2, is from the United States and has picked less than 113? | SELECT MAX(draft) FROM table_name_89 WHERE round > 2 AND nationality = "united states" AND pick < 113 |
Name the literature for pradit prasarttong | SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong" |
What are the keywords for the paper which was published on "Modeling Identification and Control" in 1994? | SELECT T2.Keyword FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Modeling Identification and Control' AND T2.Year = 1994 |
What is the value in 1965 when 7 is the value for 1967? | SELECT 1965 FROM table_name_81 WHERE 1967 = "7" |
What are the different cities where people live? | SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id |
Who was the away team on 30 January 1988, when the home team was Everton? | SELECT away_team FROM table_name_45 WHERE home_team = "everton" AND date = "30 january 1988" |
Was there HDTV when the service was Privè? | SELECT hdtv FROM table_15887683_19 WHERE television_service = "PRIVÈ" |
what's Smith Hall student capacity? | SELECT DISTINCT ( T1.student_capacity ) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = "Smith Hall" |
Which source reported 32.60% of browsers used Chrome? | SELECT source FROM table_name_43 WHERE chrome = "32.60%" |
What is the scientific pitch when the Helmholtz pitch is D? | SELECT scientific_pitch FROM table_name_33 WHERE helmholtz_pitch = "d" |
How many teams had a point margin of 48? | SELECT COUNT(eliminated_from_competition) FROM table_28068063_3 WHERE points_margin = 48 |
Thank you. Can you please tell me the name of the engineer that was contacted by each manager? | Of course. First or Last name? | First and Last name, please. | SELECT T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id |
What is the result for November 25, 2001? | SELECT result FROM table_name_45 WHERE date = "november 25, 2001" |
Please list the names of the authors of the paper "Area Effects in Cepaea". | SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Area Effects in Cepaea' |
How many friends does Dan have? | SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' |
What is the name of the episode that had 8.51 million viewers? | SELECT title FROM table_26139405_1 WHERE viewers__in_millions_ = "8.51" |
What was the original air date for season number 2? | SELECT original_air_date FROM table_21781578_2 WHERE season_no = 2 |
How many weight of Francesco Postiglione? | SELECT weight FROM people where name = "Francesco Postiglione" |
Find the capacity and gender type of the dorm whose name has substring ‘Donor’. | SELECT student_capacity , gender FROM dorm WHERE dorm_name LIKE '%Donor%' |
How many category names start with the word "game"? | SELECT COUNT(label_id) FROM label_categories WHERE category LIKE 'game%' |
what is the highest amount claimed on the claim headers | SELECT max ( amount_claimed ) from claim_headers |
Tell me the sum of draws for position less than 15 with played more than 38 | SELECT SUM(draws) FROM table_name_95 WHERE position < 15 AND played > 38 |
Show the guest first names, start dates, and end dates of all the apartment bookings. | SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id |
Name the drivetrain for 2ur-fse | SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "2UR-FSE" |
Calculate the total amount of donations made in 2011 for an honoree with payment via campaign page. | SELECT SUM(donation_total) FROM donations WHERE donation_timestamp LIKE '2011%' AND via_giving_page = 't' AND for_honoree = 't' |
Select the name and price of the cheapest product. | SELECT name , price FROM Products ORDER BY price ASC LIMIT 1 |
what is the winner of stage 3 | SELECT winner FROM table_name_75 WHERE stage = 3 |
Who was the play by play commentator for ABC after 1998? | SELECT play_by_play FROM table_name_61 WHERE network = "abc" AND year > 1998 |
What was the score for Spain? | SELECT score FROM table_name_28 WHERE country = "spain" |
What Outcome has a Rocket launch of rehnuma-11? | SELECT outcomes FROM table_name_93 WHERE rocket_launch = "rehnuma-11" |
What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km? | SELECT SUM(population__2010_census_) FROM table_name_16 WHERE administrative_division = "japeri" AND area__km²_ < 82.9 |
On the day with the highest max temperature in 2012, how many items in store no.3 had no sales? | SELECT COUNT(DISTINCT T1.item_nbr) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr AND T1.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.units = 0 GROUP BY T3.tmax ORDER BY T3.tmax DESC LIMIT 1 |
What are their product descriptions? | 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 venue has eng by 10 runs as the result? | SELECT venue FROM table_name_2 WHERE result = "eng by 10 runs" |
What is the average age of the female students with secretary votes in the spring election cycle? | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring" |
What machine has 5 as the place? | SELECT machine FROM table_name_95 WHERE place = 5 |
Which city has most number of customers? | SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1; |
What is the total round of the 129 pick? | SELECT COUNT(round) FROM table_name_49 WHERE pick__number = 129 |
Among the businesses with a category of Food, what is the percentage of the business with greater than 3 stars? | SELECT CAST(SUM(CASE WHEN T1.stars > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' |
Which competition was held on September 10, 2005? | SELECT competition FROM table_name_58 WHERE date = "september 10, 2005" |
Which airport had the most domestic passengers? | SELECT airport_name FROM airport order by Domestic_Passengers desc limit 1 |
List the words that are cited in both AI and IR class label. | SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' OR T1.class_label = 'IR' |
What is the League a for 1908–1928? | SELECT league_a FROM table_name_30 WHERE years = "1908–1928" |
What is the theme where the original artist is Noemi feat. Fiorella Mannoia? | SELECT theme FROM table_25374338_1 WHERE original_artist = "Noemi feat. Fiorella Mannoia" |
Identify the number of employees in Northern sales region. | SELECT COUNT(T2.EmployeeID) FROM Territories AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.TerritoryID = T2.TerritoryID INNER JOIN Region AS T3 ON T1.RegionID = T3.RegionID WHERE T3.RegionDescription = 'Northern' |
Name the site with game of game 6 | SELECT site FROM table_name_49 WHERE game = "game 6" |
How many millions of U.S. viewers whatched episodes written by Krystal Houghton? | SELECT us_viewers__millions_ FROM table_11411026_2 WHERE written_by = "Krystal Houghton" |
What is the combined crowd in Vancouver on may 22? | SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22" |
I want to know the names of advisors available | SELECT fname , lname FROM Faculty |
Count the number of customers who have an account. | SELECT count(DISTINCT customer_id) FROM Accounts |
Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor? | SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" |
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? | SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" |
Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor? | SELECT name FROM table_name_33 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" |
Who wrote the episode for s02 e07? | SELECT written_by FROM table_16384596_4 WHERE broadcast_order = "S02 E07" |
How many accounts have a savings balance above the average savings balance? | SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings) |
What is the average typical buying price? | SELECT avg ( typical_buying_price ) FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs" |
List the products involved in the complaints received on March 2017 via TOVA server. | SELECT DISTINCT T2.Product FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.server = 'TOVA' AND T2.`Date received` LIKE '2017-03%' |
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year? | SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around" |
What are the ids, scores, and dates of the games which caused at least two injury accidents? | SELECT T1.id , T1.score , T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 |
What is the character and work ID of the text "Fear not thou, man, thou shalt lose nothing here."? | SELECT T2.character_id, T1.work_id FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T2.PlainText = 'Fear not thou, man, thou shalt lose nothing here.' |
What are all the characteristic names of product "sesame"? | 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" |
What are the numbers of the shortest flights? | SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3 |
What are the master index IDs for all except whose detail includes Schmidt, Kertzmann and Lubowitz? | SELECT master_customer_id FROM Customer_Master_Index where cmi_details ! = ( 'Schmidt, Kertzmann and Lubowitz' ) |
List all channel names ordered by their rating in percent from big to small. | SELECT name FROM channel ORDER BY rating_in_percent DESC |
Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. | SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE" |
What are the name and typical buying and selling prices of the products that have color described as "yellow"? | SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "yellow" |
In which year was Panzer Tactics released on DS? | SELECT T4.release_year FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T5.platform_name = 'DS' |
What is the total gold with a total less than 1? | SELECT SUM(gold) FROM table_name_2 WHERE total < 1 |
Find all the building full names containing the word "court". | SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%" |
What shows for IATA for the City of sapporo? | SELECT iata FROM table_name_89 WHERE city = "sapporo" |
List the population density per kilometer for the city of abra de ilog. | SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = "Abra de Ilog" |
For each station, find its latitude and the minimum duration of trips that ended at the station. | 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 |
When santiago del estero is the hometown who is the contestant? | SELECT contestant FROM table_18626383_2 WHERE hometown = "Santiago del Estero" |
Report all majors that have less than 3 students. | SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3 |
What is the Margin of Victory, when Tournament is Mercedes Championships (3)? | SELECT margin_of_victory FROM table_name_24 WHERE tournament = "mercedes championships (3)" |
Find the names of customers who are not living in the state of California. | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' |
Name the lfop for 5/11/09 with lfop 1/9/09 of 5% | SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = "5%" |
What are the names of gymnasts whose hometown is not "Santo Domingo"? | SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != "Santo Domingo" |
What is the percentage of Swedish players in playoffs games in the 1997 - 2000 season? | SELECT DISTINCT CAST(COUNT(CASE WHEN T1.nation = 'Sweden' THEN T1.ELITEID ELSE NULL END) OVER (PARTITION BY T2.SEASON) AS REAL) * 100 / COUNT(T1.ELITEID) OVER (PARTITION BY T2.SEASON) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.SEASON IN ('1997-1998', '1998-1999', '1999-2000') |
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. | SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1 |
Can you tell me how many different purchases Lucas Mancini has made? | SELECT count ( * ) FROM invoices AS T2 JOIN customers AS T1 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" |
Trains that run in which direction have more rectangle-shaped cars in total? | SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id ORDER BY T2.rectCarsNum DESC |
List down the game platform ID and region name where the games achieved 20000 sales and below. | SELECT T2.game_platform_id, T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 <= 20000 |
Which station has park & ride lot parking? | SELECT stations FROM table_2093995_1 WHERE parking = "Park & Ride Lot" |
In what year was this event held in Oslo, Norway? | SELECT year FROM table_name_13 WHERE venue = "oslo, norway" |
Find the top 3 wineries with the greatest number of wines made of white color grapes. | SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3 |
What is the Brigade, when the Type is Rural, and when the value for Tankers is 1? | SELECT brigade FROM table_name_10 WHERE type = "rural" AND tankers = 1 |
OK, now list all the people who live in Winnipeg and their gender. | SELECT Player_name, Gender FROM player WHERE Residence = "Winnipeg" |
What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009? | SELECT giant_slalom FROM table_name_45 WHERE victories > 27 AND slalom = "–" AND career = "1996–2009" |
Among the employees whose pay frequencies are the highest, how many of them are married? | SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.MaritalStatus = 'M' AND T1.PayFrequency = ( SELECT PayFrequency FROM EmployeePayHistory ORDER BY PayFrequency DESC LIMIT 1 ) |
Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc? | SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND T3.first_name = 'Sue' AND T3.last_name = 'Newell' |
How many tries were there for club cwmtwrch rfc? | SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc" |
What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心? | SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心" |
What is the latest season number that Eric Tuchman directed? | SELECT MAX(season__number) FROM table_2219961_2 WHERE director = "Eric Tuchman" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.