sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the total salary paid by team Boston Red Stockings in 2010? | SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 |
What was the result in 2007 when the 2011 was F and 2009 was W? | SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w" |
List all the tokenized name of the solution path "jurney_P4Backup\P4Backup\P4Backup.sln
". | SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'jurney_P4BackupP4BackupP4Backup.sln' |
What is the venue when the result was position of 17th? | SELECT venue FROM table_name_27 WHERE position = "17th" |
What is the 2000-2001 Team with a Jersey # that is 19? | SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 19 |
What is the Pick # with an Overall of 19? | SELECT MAX(pick__number) FROM table_name_22 WHERE overall = 19 |
What was Laura Diaz's score for place t9? | SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz" |
Count the number of documents with expenses. | SELECT count(*) FROM Documents_with_expenses |
When did the Cyclones get 46 points? | SELECT date FROM table_23184448_3 WHERE cyclones_points = 46 |
What is the education required for David Whitehead to reach his current position? | SELECT T2.educationrequired FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'David' AND T1.lastname = 'Whitehead' AND T1.gender = 'M' |
Show the station name with greatest number of trains. | SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1 |
What venue did group g play at on Mar 8, 1998? | SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998" |
Find all the campuses opened in 1958. | SELECT campus FROM campuses WHERE YEAR = 1958 |
Who was the runner-up in 1980 at the Pocking venue? | SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980" |
What are the types of film market estimations in year 1995? | SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995 |
Who was the away captain at Brisbane Cricket Ground? | SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground" |
What kind of fuel propulsion do these pilots' aircrafts use? | SELECT distinct ( Fuel_Propulsion ) from aircraft |
Which item resulted in a score of 4-1? | SELECT score FROM table_name_77 WHERE result = "4-1" |
Find the name of dorms which have both TV Lounge and Study Room as amenities. | SELECT T1.dorm_name 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 T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name 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 T3.amenity_name = 'Study Room' |
What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins? | SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = "boston college eagles" AND wins > 6 |
What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1? | SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1 |
Which district has John Culpepper (f) as the vacator? | SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)" |
How many arrests were made in 2018 in an animal hospital under FBI code 08B? | SELECT SUM(CASE WHEN arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND location_description = 'ANIMAL HOSPITAL' AND fbi_code_no = '08B' |
Name the D 49 √ for when D 46 √ of i 1 @ | SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 1 @" |
Name the Drawn for tries against of 36 and points of 66 | SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66" |
Which Position has Goals against larger than 32, and points larger than 30? | SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30 |
What is the most points when the entrant was Jaguar racing earlier than 2001? | SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 2001 |
What are the addresses for these three branches? | SELECT Address_road FROM branch ORDER BY membership_amount DESC LIMIT 3 |
Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what? | SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = "75%" |
and of those, please now just show the female students | SELECT * FROM student WHERE sex = 'F' AND age < 25 |
What country in Asia has the largest gross national product(GNP)? | SELECT Name FROM Country WHERE Continent = 'Asia' ORDER BY GNP DESC LIMIT 1 |
Show the first name and last name for the customer with account name 900. | SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "900" |
What is the entire inhabitants in Southeast Asia? | SELECT MIN(total_population) FROM table_1389609_3 WHERE region = "Southeast Asia" |
Who was the GTO winning team when the TO winning team was #84 Camaro? | SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro" |
Name the outgoing manager for 10 june 2009 | SELECT COUNT(outgoing_manager) FROM table_22848931_3 WHERE date_of_vacancy = "10 June 2009" |
Who was the womens double winner when the womens singles winner was Ding Ning? | SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = "Ding Ning" |
Which game was played on march 2? | SELECT AVG(game) FROM table_name_4 WHERE date = "march 2" |
Who had 8 points, later than 1980, and a theodore ty02 chassis? | SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = "theodore ty02" |
What is the winner of gold that also has ↓ 1 in the sport of cycling? | SELECT gold FROM table_name_97 WHERE bronze = "↓ 1" AND sport = "cycling" |
What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008? | SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = "january 6, 2008" |
What is the average Lost for Team Matlock Town when the Goals Against is higher than 66? | SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66 |
What date has ed as an actual title? | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
Which of the building full names have the word "court" in it? | SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name like '%Court%' |
WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND? | SELECT school FROM table_11677691_2 WHERE college = "South Carolina" |
What was the pick number for Andrew Quarless? | SELECT MAX(pick__number) FROM table_26077092_7 WHERE player = "Andrew Quarless" |
WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18? | SELECT score FROM table_name_80 WHERE date = "november 18" |
What are the first names and ages of all students who are playing both Football and Lacrosse? | SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse") |
What position does Mikhail Kravets play? | SELECT position FROM table_name_15 WHERE player = "mikhail kravets" |
For all trips which took less 5 minutes, state the station name where the bike were borrowed and returned. Indicate mean temperature of the day. | SELECT T1.start_station_name, T1.end_station_name, T2.mean_temperature_f FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.duration < 300 |
What age group is the most using SM-T2558 model phones? | SELECT T.`group` FROM ( SELECT T1.`group`, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'SM-T2558' GROUP BY T1.`group` ) AS T ORDER BY T.num DESC LIMIT 1 |
List out all the medals won by Lee Chong Wei. | SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Lee Chong Wei' AND T2.medal_id <> 4 |
What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP? | SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059 |
Where was game number 5 played? | SELECT location_attendance FROM table_23286112_12 WHERE game = 5 |
What was the pick number for the person from the United States who as drafted to the SF position from North Carolina? | SELECT pick FROM table_name_78 WHERE nationality = "united states" AND college_high_school_club = "north carolina" AND position = "sf" |
How many platforms have a southern opertator and the pattern is all stations via clapham junction? | SELECT COUNT(platform) FROM table_1569516_1 WHERE operator = "Southern" AND service_pattern = "All stations via Clapham Junction" |
What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3? | SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3" |
Which Chicken wing has no steal/intercept ball? | SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = "no" |
How many of them had participants whose details had substring "Dr"? | SELECT count ( * ) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' |
Which Score has a To par of –3, and a Player of santiago luna? | SELECT score FROM table_name_69 WHERE to_par = "–3" AND player = "santiago luna" |
What are their first names? | SELECT T2.fname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' |
How many ministers were there? | SELECT count ( minister ) FROM party |
What was the Goal in Stade Roi Baudouin, Brussels? | SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels" |
Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling. | SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Meaghan" AND T2.customer_last_name = "Keeling" |
What score has 2 as the place? | SELECT score FROM table_name_78 WHERE place = "2" |
What is the category that the most app users belong to? | SELECT T.category FROM ( SELECT T1.category, COUNT(T2.app_id) AS num FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id GROUP BY T1.label_id ) AS T ORDER BY T.num DESC LIMIT 1 |
Where is the area of operation that had drilling during the year 1999? | SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999" |
What was the result of the Top 12 Men theme? | SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men" |
What is the smallest grid for driver of juan pablo montoya? | SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya" |
What School has Colors of navy blue orange? | SELECT school FROM table_name_17 WHERE colors = "navy blue orange" |
What is the most common major among female (sex is F) students? | SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1 |
Could you list them grouped by state? | SELECT billing_state, COUNT ( * ) FROM invoices WHERE billing_country = "USA" group by billing_state |
Name the score for 10 april 2007 and opponent of selima sfar | SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar" |
Which job title has the lowest pay? | SELECT T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.Rate ASC LIMIT 1 |
What is the name of the body builder with the greatest body weight? | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 |
What is the ratio of female users to male users who uses a vivo device? | SELECT SUM(IIF(T1.gender = 'M', 1, 0)) / SUM(IIF(T1.gender = 'F', 1, 0)) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' |
What championship was played with Allan Stone as a partner? | SELECT championship FROM table_2820584_3 WHERE partner = "Allan Stone" |
What are the color descriptions of those? | SELECT t4.color_description 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t3.characteristic_name = "slow" |
What is the amount of mailshots that Wendell has? | SELECT count ( * ) FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id where T2.customer_name = "Wendell" |
What country is Adam Scott from? | SELECT country FROM table_name_19 WHERE player = "adam scott" |
What was the final score for the game Bursaspor vs Denizlispor on 2009/4/26? | SELECT FTHG, FTAG FROM matchs WHERE Date = '2009-04-26' AND HomeTeam = 'Bursaspor' AND AwayTeam = 'Denizlispor' |
What is the duration of the oldest actor? | SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 |
what is the no when the distance is 4168km? | SELECT no FROM table_26745820_1 WHERE distance = "4168km" |
Name the high assists for delta center 19,639 | SELECT high_assists FROM table_15869204_5 WHERE location_attendance = "Delta Center 19,639" |
Compare and get the difference of the number of businesses that are open in Monday and Tuesday from 10 am to 9 pm. | SELECT SUM(CASE WHEN T3.day_of_week = 'Monday' THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.day_of_week = 'Tuesday' THEN 1 ELSE 0 END) AS DIFF FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '10AM' AND T2.closing_time = '9PM' |
And for LSU? | Would you like to know the enrollment for the college named LSU? | Yes I would. | SELECT enr FROM College WHERE cName = 'LSU' |
Which university had the most students in 2011? Show its name. | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 |
What is the score of the team with the 14-9 record? | SELECT score FROM table_name_43 WHERE record = "14-9" |
In which state is the college that Charles attends? | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' |
In what title did he act in 1940? | SELECT title FROM table_name_65 WHERE year = 1940 |
How many editions have a most wins value of Franco Marvulli (4)? | SELECT COUNT(number_of_editions) FROM table_1840433_2 WHERE most_wins_by = "Franco Marvulli (4)" |
what is the overall number of times when the calendar showed october 6 | SELECT COUNT(record) FROM table_27733909_1 WHERE date = "October 6" |
What was the score of the game played in the 2012 Africa Cup of Nations? | SELECT score FROM table_name_90 WHERE competition = "2012 africa cup of nations" |
How many weeks had an attendance at 69,149? | SELECT COUNT(week) FROM table_name_12 WHERE attendance = "69,149" |
what is the employee DOB of employee no 101 | SELECT EMP_DOB FROM employee WHERE EMP_NUM = 101 |
What is the score for Jock Hutchison? | SELECT score FROM table_name_89 WHERE player = "jock hutchison" |
Show the transaction types and the total amount of transactions. | SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type |
Whats the name of segment D in the episode where segment A is tequila | SELECT segment_d FROM table_15187735_16 WHERE segment_a = "Tequila" |
Count the Prominence (m) of Col (m) smaller than 0? | SELECT AVG(prominence__m_) FROM table_name_9 WHERE col__m_ < 0 |
What's the 1991 census of the city of Carpi? | SELECT MAX(1991 AS _census) FROM table_10138926_1 WHERE city = "Carpi" |
Compute the average percentage of female students. | SELECT AVG(pct_female_students) FROM university_year |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.