sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What building is in ljubljana, proposed in 2010, and has 15 floors? | SELECT name FROM table_name_21 WHERE location = "ljubljana" AND year_proposed = "2010" AND floors = "15" |
Show the names of employees with role name Editor. | SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor" |
What is short-term capital gain rate with long-term gain on collectibles at 15%? | SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%" |
Find the wineries that have at least four wines. | SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 |
What was the result of the player from Maylands, Western Australia? | SELECT result FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia" |
Segment B of aerospace fuel lines has what segment A? | SELECT segment_a FROM table_name_5 WHERE segment_b = "aerospace fuel lines" |
How many different instruments are used in the song "Le Pop"? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" |
What is the population of the East Kilbride urban sub-area? | SELECT population FROM table_name_61 WHERE urban_sub_area = "east kilbride" |
What's the platform of Super Mario All-Stars? | SELECT platform FROM table_name_89 WHERE title = "super mario all-stars" |
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? | SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r" |
What was the away team that faced Carlton? | SELECT away_team FROM table_name_6 WHERE home_team = "carlton" |
What was the date of the game with a loss of Bush (1–5)? | SELECT date FROM table_name_18 WHERE loss = "bush (1–5)" |
Please list the reviewers who have given the highest rating for a medium class, women's product. | SELECT T1.ReviewerName FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Class = 'M' AND T2.Style = 'W' AND T1.Rating = 5 |
And what was the resolution for this song name? | SELECT resolution from song where song_name = 'Tumi robe nirobe' |
List down the country names of countries that have a GNP lower than 1000 and have Dutch as their language. | SELECT T2.Name FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GNP < 1000 AND T1.IsOfficial = 'T' AND T1.Language = 'Dutch' |
2007 of 8–4 is involved in what 2002? | SELECT 2002 FROM table_name_69 WHERE 2007 = "8–4" |
find the name of employee who was awarded the most times in the evaluation. | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1 |
Return the names of friends of the high school student Kyle. | SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle" |
What percentage of users were using Safari during the period in which 30.82% were using Firefox? | SELECT safari FROM table_name_96 WHERE firefox = "30.82%" |
What's the Yellow fertility rate when Brazil is 0,43407? | SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407" |
Tell me the country for san juan | SELECT country FROM table_name_62 WHERE city = "san juan" |
Did the tallest player got in the Hall of Fame? If yes, please list the year when he got in the Hall of Fame. | SELECT CASE WHEN T1.hofID IS NULL THEN 'NO' ELSE T2.year END FROM Master AS T1 LEFT JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.height = ( SELECT MAX(height) FROM Master ) |
What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50? | SELECT email FROM employees WHERE commission_pct = "null" AND salary BETWEEN 7000 AND 12000 AND department_id = 50 |
Who's captain of the team whose stadium has a capacity of 17800 people? | SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800 |
When was there a record of 13–17–3? | SELECT date FROM table_name_63 WHERE record = "13–17–3" |
When it's the 2nd round of the open cup what is the playoffs? | SELECT playoffs FROM table_1939235_1 WHERE open_cup = "2nd Round" |
Which 92.5 holds the world record? | SELECT world_record FROM table_name_40 WHERE press = "925" |
What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company? | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company'; |
What is the name of the employee whose role name is Human Resources? | SELECT T1.Employee_Name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" |
Among the trains running west, how many trains have three-wheeled, jagged roof cars? | SELECT SUM(CASE WHEN T2.direction = 'west' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.wheels = 3 AND T1.roof = 'jagged' |
What is the name of the territory assigned to the sales person with business id "277"? | SELECT T2.Name FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T1.BusinessEntityID = 277 |
Which country has the highest GDP? | SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1 |
How many women are there? | SELECT count ( * ) FROM people WHERE is_male = 'F' |
What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg? | SELECT almaty_, _kazakhstan FROM table_name_17 WHERE sergey_filimonov___kaz__ = "210kg" |
Thanks! Can you show me the average age of the students living in each of these dorms? | SELECT avg ( T1.age ) , T3.dorm_name 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 date did Footscray play and Away game? | SELECT date FROM table_name_24 WHERE away_team = "footscray" |
What is the effective date of the claim that has the largest amount of total settlement? | SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 |
Find the classroom that the most students use. | SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 |
Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3? | SELECT SUM(females___percentage_) FROM table_name_71 WHERE hiv_awareness__males_percentage_ > 92 AND females_rank > 2 AND males_rank < 3 |
When was the player with 51 caps from a Club/province of clermont born? | SELECT date_of_birth__age_ FROM table_name_4 WHERE caps = 51 AND club_province = "clermont" |
How old is he and what position does he play? | SELECT Age, Position FROM player WHERE Player = "Timothy Beckham" |
what is the name of people that are not perpetrators | SELECT Name FROM people WHERE People_ID NOT IN ( SELECT People_ID FROM perpetrator ) |
What are the different names of the genres? | SELECT DISTINCT name FROM genres; |
What is the name of tracks whose genre is Rock? | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" |
What is the location of the 200m backstroke? | SELECT location FROM table_name_75 WHERE event = "200m backstroke" |
What is the lowest overall draft pick number for terry daniels who was picked in round 10? | SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels" |
Find the name of the candidates whose oppose percentage is the lowest for each sex. | SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex |
How many tries were for the 7 lost? | SELECT tries_for FROM table_name_87 WHERE lost = "7" |
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 faculty members are in building Barton? | SELECT count ( * ) FROM FACULTY WHERE Building = "Barton" |
What type of game is Call of Destiny? | SELECT gtype FROM Video_games WHERE gname = "Call of Destiny" |
In 2010-11, what was the League name? | SELECT league FROM table_name_18 WHERE year = "2010-11" |
what day was the score 39-14 | SELECT date FROM table_name_58 WHERE record = "39-14" |
LIST THE NAME OF CATALOGS | SELECT catalog_name FROM catalogs |
Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2? | SELECT no5 FROM table_name_29 WHERE no1 = "lena claudisabel" AND no2 = "lena sylvie" |
What was the place when the score was 68-75-68=211? | SELECT place FROM table_name_28 WHERE score = 68 - 75 - 68 = 211 |
how many matches did the player that played 23 matches win | SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23 |
Find the description of the claim status "Open". | SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = "Open" |
Give the name of the city of the user who tweeted `One of our favorite stories is @FINRA_News's move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a`. | SELECT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.text = 'One of our favorite stories is @FINRA_News''s move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a' |
what is the total number of average where evening gown is 8.988 | SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = "8.988" |
When salt of this sea is the english title who is the director? | SELECT director FROM table_26555737_1 WHERE english_title = "Salt of this Sea" |
What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron? | SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron") |
How many colors are never used by any product? | SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products ) |
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 |
How many climbers are there? | SELECT count(*) FROM climber |
Find the name of the program that is broadcast most frequently. | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1 |
What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps? | SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = "jeremy mcwilliams" |
How many films did actor Daryl Wahlberg appear in? | SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'DARYL' AND T2.last_name = 'WAHLBERG' |
How many events are there? | SELECT COUNT(*) FROM event |
If the residence is Chagrin falls, who is the representative? | SELECT representative FROM table_26131768_4 WHERE residence = "Chagrin Falls" |
Among the students who have been absent for four months, provide any five students' names and enlisted organizations. | SELECT T2.name, T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.month = 4 LIMIT 5 |
What is 2010 that has 1r 2011? | SELECT 2010 FROM table_name_3 WHERE 2011 = "1r" |
What is the episode for the TV series named "Sky Radio"? | SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"; |
What is the location of the party with the most hosts? | SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 |
How many runners-up did the club with the last final lost in 1985 have? | SELECT runners_up FROM table_name_39 WHERE last_final_lost = "1985" |
What are the total scores of the body builders whose birthday contains the string "January" ? | SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE "%January%"; |
Which year were those branches opened? | SELECT open_year FROM branch WHERE open_year < 2010 |
What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name. | SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!"; |
How much did Kenny Brack win? | SELECT winnings FROM table_25146455_1 WHERE driver = "Kenny Brack" |
Show the theme for exhibitions with both records of an attendance below 100 and above 500. | SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 |
Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson? | SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson" |
What Team had the first round of 1:00? | SELECT team FROM table_name_53 WHERE first_round = "1:00" |
Can you tell me the lowest React that has the Lane of 5? | SELECT MIN(react) FROM table_name_50 WHERE lane = 5 |
What extra has world championships as the tournament, and 1st as the result? | SELECT extra FROM table_name_2 WHERE tournament = "world championships" AND result = "1st" |
Find the names of schools that have some players in the mid position but not in the goalie position. | SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' |
Name all the release titles of the "ep's" under the alternative tag. | SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag LIKE 'alternative' AND T1.releaseType = 'ep' |
What is the Singles W-L for the players named Laurynas Grigelis? | SELECT singles_w_l FROM table_10295819_1 WHERE player = "Laurynas Grigelis" |
What is the home team score when the away team is Collingwood? | SELECT home_team AS score FROM table_name_36 WHERE away_team = "collingwood" |
What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1? | SELECT SUM(a_score) FROM table_name_92 WHERE t_score < 7.3 AND e_score > 7.1 |
Listed with a continent of Africa and before 2009 this structure is called what? | SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa" |
What is the lowest duration of songs that have mp3 format and resolution below 800? | SELECT min ( T1.duration ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800 |
What are the three largest numbers of games sold? | SELECT T.game_platform_id, SUM(T.num_sales) * 100000 FROM region_sales AS T GROUP BY game_platform_id ORDER BY SUM(T.num_sales) * 100000 DESC LIMIT 3 |
On what date was elimination on final night? | SELECT date FROM table_name_43 WHERE eliminated = "final night" |
What are the maximum and minimum week on top of all volumes? | SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume |
Which destination has least number of flights? | SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1 |
What is the description of the claim status "Open"? | SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = "Open" |
What is the info for the year 2010, for the Australian Open tournament? | SELECT 2010 FROM table_name_33 WHERE tournament = "australian open" |
Name the position for numbers of 41 | SELECT position FROM table_name_37 WHERE no_s_ = "41" |
What were the notes during the distance of Men's Speed Skating? | SELECT notes FROM table_name_57 WHERE distance = "men's speed skating" |
What date was Leo Mainoldi (24) the leading scorer? | SELECT date FROM table_name_72 WHERE leading_scorer = "leo mainoldi (24)" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.