sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the away team score for the match at 6:00 PM and an away team of Hawthorn? | SELECT away_team AS score FROM table_name_56 WHERE time = "6:00 pm" AND away_team = "hawthorn" |
What is the total of the ranks that did not participate? | SELECT total FROM table_name_88 WHERE rank = "did not participate" |
What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"? | SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" |
Find the longest ride on foggy day. What were the mean visibility, mean wind speed, and weather event during that ride? Also, list the coordinates and names of the start and end stations. | SELECT T3.mean_visibility_miles, T3.mean_wind_speed_mph, T3.events, T1.lat, T1.long , T2.start_station_name, T2.end_station_name FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.events = 'Fog' ORDER BY T2.duration DESC LIMIT 1 |
What round had a record of 4-1? | SELECT round FROM table_name_17 WHERE record = "4-1" |
Calculate the total type of allergies for German people. | SELECT COUNT(DISTINCT T2.DESCRIPTION) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.ethnicity = 'german' |
What is varricchio's unit? | SELECT unit FROM table_name_75 WHERE authors = "varricchio" |
What was the origin country of the car model ford torino produced in 1970? | SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.car_name = 'ford torino' AND T2.model_year = 1970 |
Among the author who drafted the paper "A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus", which of them is/are affiliated with the Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea
? | SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Affiliation = 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' AND T1.Title = 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' |
Name the team for november 5 | SELECT team FROM table_17355716_5 WHERE date = "November 5" |
How many have a Ph.D. degree? | SELECT count ( * ) FROM professor where prof_high_degree = "Ph.D." |
What is Mary Smith's rental ID? | SELECT T2.rental_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'MARY' AND T1.last_name = 'SMITH' |
In which year was a linebacker pick 17? | SELECT year FROM table_name_4 WHERE position = "linebacker" AND pick = "17" |
Find the name of the airport in the city of Goroka. | SELECT name FROM airports WHERE city = 'Goroka' |
What is the comment format of method number 50 with the solution path "managedfusion_managedfusion\ManagedFusion.sln"? | SELECT CASE WHEN T2.CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN T2.CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 50 AND T1.Path = 'managedfusion_managedfusionManagedFusion.sln' |
How many years has 2 points? | SELECT SUM(year) FROM table_name_85 WHERE points = 2 |
When did the first staff for the projects started working? | SELECT date_from FROM Project_Staff ORDER BY date_from LIMIT 1 |
How about Lidl? | SELECT T3.address_details FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id where T1.supplier_name = 'Lidl' |
Tell me the lowest Bronze for gold of 3 in the winter for cross-country skiing and silver less than 0 | SELECT MIN(bronze) FROM table_name_56 WHERE gold = 3 AND games = "winter" AND sport = "cross-country skiing" AND silver < 0 |
How many 35-year-old female users gave the movie 1711133 a rating of 3? | SELECT COUNT(T1.userid) FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T2.rating = 3 AND T2.movieid = '1711133' AND T1.age = 35 AND T1.u_gender = 'F' |
Could you please tell me which room has the cheapest base price? | SELECT * FROM Rooms ORDER BY basePrice ASC LIMIT 1 |
How many League cups had a total less than 25 and a league larger than 19? | SELECT COUNT(league) AS Cup FROM table_name_70 WHERE total < 25 AND league > 19 |
What was the position in 2006? | SELECT pos FROM table_name_66 WHERE year = 2006 |
What is the date of the circuit gilles villeneuve? | SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve" |
what is the participant id in lupe deckow | SELECT participant_id FROM participants WHERE Participant_Details = "Lupe Deckow" |
Where was the tourney when Louisville won the regular season? | SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Louisville" |
Who was the vacator when Shadrach Bond was the successor? | SELECT vacator FROM table_225095_4 WHERE successor = "Shadrach Bond" |
Please tell the meaning of CultureID "fr". | SELECT Name FROM Culture WHERE CultureID = 'fr' |
What is the type for Cassano? | SELECT type FROM table_name_46 WHERE name = "cassano" |
On which date was the part "burnished seashell gainsboro navajo chocolate" in order no.1 shipped? | SELECT T1.l_shipdate FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T1.l_orderkey = 1 AND T2.p_name = 'burnished seashell gainsboro navajo chocolate' |
What was the original air date when ed horowitz wrote it? | SELECT original_airdate FROM table_name_89 WHERE written_by = "ed horowitz" |
What is the google entity ID of current legislator Sherrod Brown? | SELECT google_entity_id_id FROM current WHERE official_full_name = 'Sherrod Brown' |
Where did the Centurions play the Hamburg Sea Devils? | SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils" |
What is the total when the league cup is less than 1, and the fa cup is less than 1? | SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 1 |
What was Phil Mickelson's score to par? | SELECT to_par FROM table_name_20 WHERE player = "phil mickelson" |
If the results are Kuwait won by 72 runs scorecard, what are the details? | SELECT details FROM table_22577693_1 WHERE result = "Kuwait won by 72 runs Scorecard" |
When the change (2011 to 2012) is +13.4% what is the country? | SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%" |
List the names of all distinct wines that are made of red color grape. | SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" |
Which Call sign has an ERP W of 75? | SELECT call_sign FROM table_name_23 WHERE erp_w = 75 |
How many companies operate airlines in each airport? | Do you want the result by airport id, or airport name or all airport information? | I would like the results by airport id, please. | SELECT T3.id , count ( * ) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id |
Return the record companies of orchestras, sorted descending by the years in which they were founded. | SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC |
What was Brian Moran's share of the votes when Creigh Deeds had 30%? | SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = "30%" |
Which cities had a higher temperature in Feb than in Jun or were a host city? | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city |
What Game has a Location of Philadelphia Spectrum and a Date of April 1? | SELECT game FROM table_name_80 WHERE location = "philadelphia spectrum" AND date = "april 1" |
Which country had notes of sa/b and a rank of 2? | SELECT country FROM table_name_7 WHERE notes = "sa/b" AND rank = 2 |
Show me the average and minimum number of floors for all buildings? | SELECT avg ( floors ) , min ( floors ) FROM building |
List all the bad alias for zip codes in Puerto Rico. | SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'PR' |
Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers. | SELECT DISTINCT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2015' GROUP BY T2.`Customer Name` HAVING COUNT(T2.`Customer Name`) > 3 |
How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99? | SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99 |
Find the total amount claimed in the most recently created document. | SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) |
What procedures is John Wen trained in? | Do you mean the name of the procedure that John Wen is trained in? | Yes. | SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" |
When was incumbent John Thomas Wilson first elected? | SELECT first_elected FROM table_1434788_5 WHERE incumbent = "John Thomas Wilson" |
Find the papers which have "Olin Shivers" as an author. | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers" |
what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa? | SELECT grid FROM table_name_5 WHERE laps > 0 AND time_retired = "engine" AND driver = "pedro de la rosa" |
List down the series codes in which the topic is about Environment: Emissions and the license type is restricted. Please include their alpha code. | SELECT SeriesCode FROM Series WHERE Topic = 'Environment: Emissions' AND LicenseType = 'Restricted' |
How many receptions were smaller than 7? | SELECT COUNT(reception) FROM table_name_12 WHERE long < 7 |
What award did they win before 2005? | SELECT award FROM table_name_62 WHERE year < 2005 |
What is the total when the Yugoslavia number of silver won is more than 1? | SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia" |
What is the date of the First Performance of Rhys Kosakowski as Billy Elliot in the Original Cast? | SELECT first_performance FROM table_name_38 WHERE status = "original cast" AND name = "rhys kosakowski" |
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded? | SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33" |
what is the inventory id of the rent id 3? | SELECT inventory_id FROM rental WHERE rental_id = 3 |
Which player was drafted by the New York Rangers? | SELECT player FROM table_2850912_10 WHERE nhl_team = "New York Rangers" |
How many city/municipalties have an area (km2) of 506.64? | SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = "506.64" |
Hello! Can you please list all of the gymnast IDs and their associated hometowns? | SELECT T1.Gymnast_ID, T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID |
Which date has an Opponent of bye? | SELECT date FROM table_name_78 WHERE opponent = "bye" |
List the number of invoices and the invoice total from California. | SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = "CA"; |
What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347? | SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347 |
Write down the image ID, full height, and full width of the menu that were used in the "100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER" event. | SELECT T1.image_id, T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.event = '100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER' |
Show the headquarters that have at least two companies. | SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2 |
How many no outs for an average of 56.38? | SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = "56.38" |
What place is Spain in? | SELECT place FROM table_name_73 WHERE country = "spain" |
what is the location when began is before 1990 and the country is france? | SELECT location FROM table_name_87 WHERE began < 1990 AND country = "france" |
In what year was 1.35% the average vote per candidate? | SELECT year FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "1.35" |
What are the full names and department ids for the lowest paid employees across all departments. | SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id) |
Which owner has paid for the most treatments on his or her dogs? List the owner id and last name. | SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 |
What are the names of representatives in descending order of votes? | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC |
Find the name of the tryout players who are from the college with largest size. | SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) |
show the lowest low temperature and highest wind speed in miles per hour. | SELECT min(low_temperature) , max(wind_speed_mph) FROM weekly_weather; |
What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16? | SELECT male_population_2001 FROM table_19589113_5 WHERE growth_rate_1991_01 = "36.16" |
When did the length of 60 minutes air? | SELECT airdate FROM table_name_46 WHERE length = "60 minutes" |
What's the average Round of Pete Laframboise? | SELECT AVG(round) FROM table_name_59 WHERE player = "pete laframboise" |
I want the ICAO for city of xi'an | SELECT icao FROM table_name_51 WHERE city = "xi'an" |
how many college with player being rich voltzke | SELECT COUNT(college) FROM table_14655985_1 WHERE player = "Rich Voltzke" |
What are the games with an Involuntary suspension of Season (hurricane Rita)? | SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)" |
What are the full names of the first top 10 customers? | SELECT First, Last FROM customers ORDER BY FirstPurchaseDate LIMIT 10 |
What is the name of the song that was released in the most recent year? | SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1 |
Return all the distinct secretary votes made in the fall election cycle. | SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall" |
Show the names of editors that are on the committee of journals with sales bigger than 3000. | SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 |
What is the name of the airline with the highest number of non-cancelled flights? | SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLED = 0 GROUP BY T2.Description ORDER BY COUNT(T1.CANCELLED) DESC LIMIT 1 |
Hi can you tell me what is the average salary? | SELECT avg ( salary ) FROM Employee |
What are the start station's name and id for the one that had the most start trips in August? | SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1 |
Return the names of tracks that have no had any races. | SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race) |
What is the most gold medals when the bronze medals were 0, and the silver medals greater than 1? | SELECT MAX(gold) FROM table_name_75 WHERE bronze = 0 AND silver > 1 |
Who is the high rebound where game is 5? | SELECT high_rebounds FROM table_27723526_17 WHERE game = 5 |
Which phone id has the highest stock on the list? | SELECT phone_id FROM phone_market ORDER BY num_of_stock DESC LIMIT 1 |
Find the first names of professors who are not playing Canoeing or Kayaking. | 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 is the party affiliation for President Stefano Baccelli? | SELECT party FROM table_name_33 WHERE president = "stefano baccelli" |
Which universities have more than 100,000 students in 2011? | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T1.num_students > 100000 |
Which party experienced a result of lost re-election democratic-republican hold? | SELECT party FROM table_2668352_16 WHERE result = "Lost re-election Democratic-Republican hold" |
What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24? | SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.