sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
what is solo when total tackles is 6? | SELECT solo FROM table_name_82 WHERE total_tackles = "6" |
List all the cities with micro CBSA. | SELECT T2.city FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_type = 'Micro' |
Which duchess was born on 9 october 1574? | SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = "9 october 1574" |
In customers with marital status of never married, what is the percentage of customers with income of 2500 and above? | SELECT CAST(SUM(CASE WHEN T2.INCOME_K > 2500 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.MARITAL_STATUS = 'Never-married' |
What is the Time of the Great Britain players with Notes of SA/B? | SELECT time FROM table_name_66 WHERE notes = "sa/b" AND country = "great britain" |
What was the attendance when North Melbourne was the away team? | SELECT AVG(crowd) FROM table_name_77 WHERE away_team = "north melbourne" |
What is the detailed family information where the sequence is aagtact? | SELECT COUNT(detailed_family_information) FROM table_26708105_2 WHERE sequence = "aAGTAct" |
What's the description of the series code SM.POP.TOTL for Aruba? | SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'SM.POP.TOTL' |
Name the running with for elizabeth falco | SELECT running_with__in_team_ FROM table_1855841_1 WHERE candidate = "Elizabeth Falco" |
who directed the episode james clavell wrote? | SELECT directed_by FROM table_2626495_1 WHERE written_by = "James Clavell" |
Find the founder of the company whose name begins with the letter 'S'. | SELECT founder FROM manufacturers WHERE name LIKE 'S%' |
What is the takeover date of the FA division mitre? | SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre" |
Who directed Avatar? | SELECT director FROM Movie WHERE title = 'Avatar' |
On what date was the winning score –20 (68-67-65-64=264)? | SELECT date FROM table_name_46 WHERE winning_score = –20(68 - 67 - 65 - 64 = 264) |
The most common amenity in all dorms is what? | SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count ( * ) DESC LIMIT 1 |
Show all opening years and the number of churches that opened in that year. | SELECT open_date, COUNT(*) FROM church GROUP BY open_date |
Among all the users who use a vivo device, what is the percentage of the users in the M23-26 user group? | SELECT SUM(IIF(T1.`group` = 'M23-26', 1.0, 0)) / COUNT(T1.device_id) 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' |
Provide the name of the patient who had a claim on 1947/9/11. | SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T2.billableperiod = '1947-09-11' |
Hmm, I want to know the cities with customers living in. | SELECT city FROM addresses WHERE city IN ( SELECT DISTINCT t3.city 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 ) |
How many community areas are in the Far North side? | SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North ' |
Could you please find all the procedures that cost more than 1000? | SELECT * FROM procedures WHERE cost > 1000 |
Who ran in the race for the seat of incumbent Carl W. Rich? | SELECT candidates FROM table_1341865_37 WHERE incumbent = "Carl W. Rich" |
How many blocks does the player who played 893 minutes have? | SELECT blocks FROM table_24912693_4 WHERE minutes = 893 |
WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? | SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10 |
Could you add in the investor details to the table please? | SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT ( * ) DESC LIMIT 3 |
What is the Turkish word for the Bangla word shombar সোমবার? | SELECT turkish FROM table_name_51 WHERE bangla = "shombar সোমবার" |
Which theme has a Episode of top 6? | SELECT theme FROM table_name_79 WHERE episode = "top 6" |
Find the name of rooms whose base price is between 120 and 150. | SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 |
What are the used kb of those? | SELECT DISTINCT T1.used_kb FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type ! = "Text" |
What is the checking balance of the account whose owner’s name contains the substring ‘ee’? | SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' |
Name the home team for football park | SELECT home_team FROM table_16388439_3 WHERE ground = "Football Park" |
List the names of players that do not have coaches. | SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach) |
Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased. | SELECT T3.PurchasingWebServiceURL FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Hex Nut 5' |
what is the area size of Neguac | SELECT Area_size FROM store where store_name = "Neguac" |
What is the ID of the university with the most students in 2011? | SELECT university_id FROM university_year WHERE year = 2011 ORDER BY num_students DESC LIMIT 1 |
What is the week number that has Dolly Parton as the theme? | SELECT week__number FROM table_name_12 WHERE theme = "dolly parton" |
What is the department name of the students with lowest gpa belongs to? | SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1 |
Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29? | SELECT driver FROM table_name_21 WHERE capacity < 5700 AND total_time = "08:29" |
what's the doubles w-l for player seol jae-min (none) | SELECT doubles_w_l FROM table_10023387_1 WHERE player = "Seol Jae-Min (none)" |
What was the site of the game that had an 11-4 score? | SELECT site_stadium FROM table_28001186_8 WHERE score = "11-4" |
What is the average number of sales in Japan? | SELECT AVG(T2.num_sales) * 100000 AS avg_japan FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' |
Please list the location coordinates of all the devices with an inactive app user when event no.2 happened. | SELECT DISTINCT T2.longitude, T2.latitude FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 2 AND T1.is_active = 0 |
Tell me the displacement for 1935-45 | SELECT displacement FROM table_name_63 WHERE year = "1935-45" |
What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western? | SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = "Westlake/MacArthur Park to Wilshire/Western" |
Name the space crusade which has Genestealers of genrøvere (gene robbers) | SELECT space_crusade FROM table_name_92 WHERE genestealers = "genrøvere (gene robbers)" |
Find the number of different product types. | SELECT count(DISTINCT product_type_code) FROM products |
What was the Attendance in Week 17? | SELECT attendance FROM table_name_70 WHERE week = 17 |
Which school has a hometown of winter park, FL? | SELECT school FROM table_name_68 WHERE hometown = "winter park, fl" |
Which teams classification winners had a general classification winner of Allan Davis? | SELECT teams_classification FROM table_28092844_16 WHERE general_classification_żółta_koszulka = "Allan Davis" |
What Platform has a Current Version 0.6.2? | SELECT platform FROM table_name_55 WHERE current_version = "0.6.2" |
How many Drawn does the team Portuguesa Santista have? | SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista" |
Find the savings balance of Wang? | SELECT T2.balance from accounts as T1 join savings as T2 on T1.custid = T2.custid where T1.name = "Wang" |
What language is the Tematico content with a sky tv package, and Fox Crime television service? | SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime" |
Address of Luís Köhler? | Is Luís Köhler full name? | Yes | SELECT address FROM customers WHERE first_name = "Luís" and last_name = " Köhler" |
What is the sum for December against the vancouver canucks earlier than game 33? | SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33 |
What was the loss/gain when the votes -cast was 166? | SELECT loss_gain FROM table_25818630_2 WHERE votes__cast = 166 |
Which team had a 2008-3 2008 draft? | SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008" |
In total, how many faculty members are there? | select count ( * ) from faculty |
What is the email id of clients whose calls were hung? | SELECT T1.email FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.outcome = 'HANG' |
What is the total medals Austria and those with larger than rank 4 have? | SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4 |
What Leading scorer had a Score of 80–112? | SELECT leading_scorer FROM table_name_98 WHERE score = "80–112" |
what is the numeric decline from peak population when the perfect decline from peak population is -16.76% | SELECT numeric_decline_from_peak_population FROM table_name_99 WHERE percent_decline_from_peak_population = "-16.76%" |
what is the date of appointment for the team osasuna? | SELECT date_of_appointment FROM table_24231638_3 WHERE team = "Osasuna" |
What was the name of the city whose temperature in March was higher than that in October? | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar > T2.Oct |
Find the number of rooms with more than 50 capacity for each building. | SELECT COUNT(*), building FROM classroom WHERE capacity > 50 GROUP BY building |
For each file format, return the number of artists who released songs in that format. | SELECT COUNT(*), formats FROM files GROUP BY formats |
How many planes of Spirit Air Lines took off on 2018/8/7? | SELECT COUNT(T2.Code) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/7' AND T2.Description = 'Spirit Air Lines: NK' |
what is the salary and name of the employee who has the most number of aircraft certificates? | SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 |
what is the role code of staff id 674810.0 | SELECT role_code FROM Project_Staff where staff_id = 674810.0 |
with the amount of tries at 89, how many win's were there? | SELECT won FROM table_17675675_2 WHERE tries_against = "89" |
What was the score for the game against the New Jersey Nets? | SELECT score FROM table_name_14 WHERE opponent = "new jersey nets" |
What is the name that only has one friend pairing? | SELECT name FROM PersonFriend GROUP BY name HAVING count ( * ) = 1 |
Name the 2007 for 2005 of a and 003 of a with 2009 of sf | SELECT 2007 FROM table_name_17 WHERE 2005 = "a" AND 2003 = "a" AND 2009 = "sf" |
What is the minimum manhunt beauty contest? | SELECT MIN(manhunt_international) FROM table_30018460_1 |
Could you please tell me all the catalog publishers whose name contains "chocolate"? | SELECT catalog_publisher FROM catalogs WHERE catalog_publisher LIKE "%chocolate%" |
When the other is n/a and the psc-pc is 30% what is the date? | SELECT date FROM table_name_52 WHERE others = "n/a" AND psd___pc = "30%" |
Who won the US Open in 1937? | SELECT player FROM table_197638_6 WHERE us_open = 1937 |
What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina? | SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler" |
How many non-essential genes are located in the nucleus? | SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Classification AS T2 ON T1.GeneID = T2.GeneID WHERE T2.Localization = 'nucleus' AND T1.Essential = 'Non-Essential' |
What was Obama's percentage in those places where McCain's percentage was 55.46%? | SELECT obama_percentage FROM table_20524090_1 WHERE mccain_percentage = "55.46%" |
How many tourist attractions? | SELECT count ( distinct Tourist_Attraction_ID ) FROM Visits |
Show the season, the player, and the name of the team that players belong to. | SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id |
What is the lowest points when the ranking is 1st? | SELECT MIN(points) FROM table_name_60 WHERE rank = "1st" |
What are the account details with the largest value or with value having char '5' in it? | SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%" |
What competition was at the Daugava Stadium, Riga, Latvia? | SELECT competition FROM table_name_19 WHERE venue = "daugava stadium, riga, latvia" |
What were the least Wins in 1988? | SELECT MIN(wins) FROM table_name_19 WHERE year = 1988 |
From which city and state does the customer that bought the product with the highest sales? | SELECT T5.City, T5.State FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN people AS T5 ON T5.`Customer ID` = T4.`Customer ID` ORDER BY T2.Sales DESC LIMIT 1 |
Calculate the total number of students in universities located in Sweden. | SELECT SUM(T2.num_students) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Sweden' |
What are the names of all aircrafts that John Williams have certificates to be able to fly? | SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = "John Williams" |
What is Circuit, when Series is ASTC Round 4? | SELECT circuit FROM table_name_26 WHERE series = "astc round 4" |
What was the record of the game with a score of 12–6? | SELECT record FROM table_name_76 WHERE score = "12–6" |
What is University of Rhode Island's affiliation? | SELECT Affiliation FROM university WHERE school = 'University of Rhode Island' |
Which Away team played at the Windy Hill Venue? | SELECT away_team FROM table_name_50 WHERE venue = "windy hill" |
And by "Benjamin"? | SELECT TIME FROM elimination WHERE Eliminated_By = "Benjamin" |
How many solar eclipse during august 21-22 and January 15-16 is 141? | SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = "141" |
Find the titles of all movies directed by steven spielberg. | SELECT title FROM Movie WHERE director = 'Steven Spielberg' |
What about United Kingdom's type of ships? | SELECT distinct Type FROM ship where Nationality = 'United Kingdom' |
Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold? | SELECT SUM(total) FROM table_name_77 WHERE gold < 4 AND silver > 0 AND rank = "3" AND bronze < 6 |
What countries have not participated in any competition with Friendly type? | SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' |
List enzyme names in alphabetical order | select name from enzyme order by name |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.