sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
What is the Set 1 with a Score with 3–2? | SELECT set_1 FROM table_name_96 WHERE score = "3–2" |
what is the record when the result is win on 2004-06-26? | SELECT record FROM table_name_96 WHERE result = "win" AND date = "2004-06-26" |
In what year did the Lions join? | SELECT MIN(joined) FROM table_1973729_1 WHERE nickname = "Lions" |
Which Opponent has a Time of 2:31? | SELECT opponent FROM table_name_42 WHERE time = "2:31" |
When did the show directed by Michael Dimartino first air? | SELECT original_air_date FROM table_14724369_1 WHERE directed_by = "Michael DiMartino" |
How many results does the California 29 voting district have? | SELECT COUNT(result) FROM table_1342149_6 WHERE district = "California 29" |
Who was the Rookie of the Year for the Season in 2000? | SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000 |
Find the name of the most popular party form. | SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1 |
What is the School of Sussex Tech's Team? | SELECT team FROM table_name_31 WHERE school = "sussex tech" |
What are the special notes for the country whose average adolescent fertility rate is the highest? | SELECT DISTINCT T1.SpecialNotes FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Value = ( SELECT Value FROM Indicators WHERE IndicatorName LIKE 'Adolescent fertility rate%' ORDER BY Value DESC LIMIT 1 ) |
Show all locations and the number of gas stations in each location ordered by the count, please? | SELECT LOCATION , count ( * ) FROM gas_station GROUP BY LOCATION ORDER BY count ( * ) |
Find the number of activities available. | SELECT count(*) FROM Activity |
Is the Washington Corrections Center for Women (WCCW) a major facility? | SELECT Major AS facility FROM table_25346763_1 WHERE facility = "Washington Corrections Center for Women (WCCW)" |
List the number of tournament winners when iona , siena & niagara won in the regular season. | SELECT COUNT(tournament_winner) FROM table_24348134_3 WHERE regular_season_winner = "Iona , Siena & Niagara" |
What stadium has a final score of 26–21? | SELECT stadium FROM table_name_8 WHERE final_score = "26–21" |
What is the GameRankings Released of 2011 with a Metacritic of 83/100? | SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 2011 |
What is the resulting score for the episodes where Rufus's guest is Sean Lock? | SELECT winner FROM table_19930660_3 WHERE rufus_guest = "Sean Lock" |
Tell me the average Laps for grid larger than 22 | SELECT AVG(laps) FROM table_name_39 WHERE grid > 22 |
What is the type if the organization name is Gamma RHO Lambda 1? | SELECT type FROM table_2538117_7 WHERE organization = "Gamma Rho Lambda 1" |
List down the IDs of the production companies that released the movies in 1916. | SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1916 |
What was the first set with a third set of 25–21? | SELECT set_1 FROM table_name_87 WHERE set_3 = "25–21" |
What are full names and salaries of employees working in the city of London? | SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London' |
Which Commenced operations have an Airline of valuair? | SELECT MAX(commenced_operations) FROM table_name_39 WHERE airline = "valuair" |
what is the average salary of Boston Red Stockings? | SELECT avg ( T1.salary ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' |
What are the job ids corresponding to jobs with average salary above 8000? | SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000 |
Find the last name of the author with first name "Amal". | SELECT lname FROM authors WHERE fname = "Amal" |
How many attended the game on 12/17 with stephen jackson as the leading scorer? | SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/17" |
What is every code and location where the launch site condition and owner is obliterated? | SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated" |
Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20. | SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20 |
Which country has a GDP (nominal) of $29.9 billion? | SELECT country FROM table_name_20 WHERE gdp__nominal_ = "$29.9 billion" |
Please list the names of the institutes in the state of Alabama whose all graduates in total exceeded 500 in 2011? | SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.state = 'Alabama' AND T2.year = 2011 AND T2.race = 'X' AND T2.grad_cohort > 500 |
What is the description for the budget type with code ORG? | SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG" |
Who was the Mariners opponent at the game attended by 7,893? | SELECT opponent FROM table_name_49 WHERE attendance = "7,893" |
Current legislator Roger F. Wicker has not been a representative for how many terms? | SELECT SUM(CASE WHEN T1.official_full_name = 'Roger F. Wicker' THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.district IS NULL OR T2.district = '' |
What was the away team when the result was 2–1 and home team was the bohemians? | SELECT away_team FROM table_24949975_1 WHERE result = "2–1" AND home_team = "Bohemians" |
What are the carriers of devices whose software platforms are not "Android"? | SELECT Carrier FROM device WHERE Software_Platform != 'Android' |
Which currency has a central rate of 0.702804? | SELECT currency FROM table_name_12 WHERE central_rate = "0.702804" |
who was the opponent when the week was 9? | SELECT opponent FROM table_name_44 WHERE week = "9" |
Which chassis manufacturer is for fleet numbers range 2530-2558 | SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = "2530-2558" |
What are the distinct first names and cities of the students who have allergy either to milk or to cat? | SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat" |
Which position does Robert Nkemdiche play? | SELECT position FROM table_name_20 WHERE player = "robert nkemdiche" |
How many students has tree pollen affected? | SELECT count ( StuID ) FROM Has_allergy where Allergy = 'Tree Pollen' |
What is the 2007 value for the 2010 wta premier 5 tournaments? | SELECT 2007 FROM table_name_12 WHERE 2010 = "wta premier 5 tournaments" |
What is the highest laps for the grid of 7? | SELECT MAX(laps) FROM table_name_82 WHERE grid = 7 |
What is the lowest oppose rate that male candidates have? | SELECT min ( oppose_rate ) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = "M" |
How many companies are there in the city of London? | SELECT COUNT(CompanyName) FROM Customers WHERE City = 'London' |
What is the number of nicknames for the meaning of god knows my journey. | SELECT COUNT(nickname) FROM table_11908801_1 WHERE meaning = "God Knows My Journey" |
What is the total pick number for a wide receiver? | SELECT COUNT(pick) FROM table_name_7 WHERE position = "wide receiver" |
When 1180 am is the frequency how many call signs are there? | SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = "1180 AM" |
What is the Point of Chassis of Lancia d50 in 1954 | SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954 |
Which player had a position of OT during round 27? | SELECT name FROM table_name_43 WHERE position = "ot" AND round = 27 |
On what episode did Julia Roberts win the "Outstanding Guest Actress in a Drama Series" award during the 1999 Primetime Emmy Awards? Tell me her role. | SELECT T3.episode_id, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id WHERE T2.year = 1999 AND T2.award = 'Outstanding Guest Actress in a Drama Series' AND T2.organization = 'Primetime Emmy Awards' AND T1.name = 'Julia Roberts' AND T2.result = 'Nominee' |
Name the german voice actor for alain dorval | SELECT german_voice_actor FROM table_14960574_6 WHERE french_voice_actor = "Alain Dorval" |
What are the names and ids of the different albums, and how many tracks are on each? | SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID |
Which county has the mascot of Bruins? | SELECT county FROM table_name_81 WHERE mascot = "bruins" |
Show the manager name with most number of gas stations opened after 2000. | SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 |
What is the Opponent at the game with Attendance of 68,436? | SELECT opponent FROM table_name_97 WHERE attendance = "68,436" |
What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts? | SELECT AVG(yards) FROM table_name_53 WHERE average < 4 AND long = 12 AND attempts < 29 |
Retrieve all the last names of authors in alphabetical order. | SELECT lname FROM authors ORDER BY lname |
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place? | SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry" |
What week corresponds to the last one to be played at the memorial stadium? | SELECT MAX(week) FROM table_10647401_1 WHERE stadium = "Memorial stadium" |
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11? | SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11" |
what film has rental fee of 0.99? | SELECT title FROM film WHERE rental_rate = 0.99 |
Which episode was written by anthony e. zuiker & ken solarz | SELECT title FROM table_11665016_2 WHERE written_by = "Anthony E. Zuiker & Ken Solarz" |
What was the location for the date 7–10 october? | SELECT city___state FROM table_26686908_2 WHERE date = "7–10 October" |
Name the total number of main contestants for safe position for tina parekh | SELECT COUNT(main_contestant) FROM table_18278508_4 WHERE position = "Safe" AND co_contestant__yaar_vs_pyaar_ = "Tina Parekh" |
What is the population (1991) when cyrillic name is панчево? | SELECT MIN(population__1991_) FROM table_2562572_7 WHERE cyrillic_name = "Панчево" |
Who is the home team that played at MCG? | SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg" |
What is the name of the episode directed by Miguel Arteta? | SELECT title FROM table_2182654_3 WHERE directed_by = "Miguel Arteta" |
hi. how many countries of origin are represented by the artists? | SELECT count ( country ) from artist |
Return the document id, template id, and description for the document with the name Robbin CV. | SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = "Robbin CV" |
What is the score of the away team when the home team is Essendon? | SELECT away_team AS score FROM table_name_12 WHERE home_team = "essendon" |
List down the full name of Irish patients diagnosed with the prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions. | SELECT DISTINCT T2.first, T2.last FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN all_prevalences AS T3 ON T1.DESCRIPTION = T3.ITEM WHERE T2.ethnicity = 'irish' AND 100 * CAST(T3.OCCURRENCES AS REAL) / ( SELECT AVG(OCCURRENCES) FROM all_prevalences ) > 96 |
Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick" | SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick" |
What is the completion percentage when yards per attempt was done by Steve McNair : 2003? | SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003" |
Among the employees who have a pay rate of above 40, how many of them are male? | SELECT SUM(CASE WHEN T2.Gender = 'M' THEN 1 ELSE 0 END) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Rate > 40 |
What i the total number of championships less than 2, and a league cup larger than 1? | SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1 |
What is the home team score that played away team carlton? | SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton" |
What is the largest draw with 37 games from England? | SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37 |
What is the elevation of Mount Hagen Kagamuga Airport? | SELECT elevation from airports where name = 'Mount Hagen Kagamuga Airport' |
How many customers are there in India? | SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'INDIA' |
What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps? | SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118" |
How many of the line items that have a quantity greater than 40 have been shipped by air? | SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity > 40 AND l_shipmode = 'AIR' |
Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842 | SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842 |
What is the number played by the team in place greater than 16? | SELECT AVG(played) FROM table_name_43 WHERE position > 16 |
Which recipe has the highest calories? | SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.calories DESC LIMIT 1 |
Who was the winning team on July 13? | SELECT winning_team FROM table_name_11 WHERE date = "july 13" |
Which city does 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 |
List down all film IDs of comedy film titles. | SELECT T1.film_id FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'comedy' |
What is the away team score for South Melbourne? | SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne" |
what's the team where date is february 8 | SELECT team FROM table_11964154_9 WHERE date = "February 8" |
On June 29, who was the opponent? | SELECT opponent FROM table_name_96 WHERE date = "june 29" |
Who was in the election that was for incumbent bud shuster's seat? | SELECT opponent FROM table_1341522_41 WHERE incumbent = "Bud Shuster" |
How many goals are associated with over 97 caps and a Latest cap of april 24, 2013? | SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97 |
What was the smallest population figure for Mareeba? | SELECT MIN(population__mareeba_) FROM table_12555835_1 |
What is the lowest Total, when Year(s) Won is "1948 , 1950 , 1951 , 1953"? | SELECT MIN(total) FROM table_name_58 WHERE year_s__won = "1948 , 1950 , 1951 , 1953" |
What are the labels' IDs of online shopping and online malls categories? | SELECT label_id FROM label_categories WHERE category IN ('online shopping', 'online malls') |
What is the Tennessee with a Kentucky of Larry Seiple | SELECT tennessee FROM table_name_11 WHERE kentucky = "larry seiple" |
How many app users belong to label ID of "48"? | SELECT COUNT(app_id) FROM app_labels WHERE label_id = 48 |
What was the name of the city whose temperature in March was lower than that in July? | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.