sentence
stringlengths
3
347
sql
stringlengths
18
804
Name and describe all projects created by New York teachers.
SELECT T1.title, T1.short_description FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.teacher_ny_teaching_fellow = 't'
Which league is for baseball with Laredo Apaches?
SELECT league FROM table_name_31 WHERE sport = "baseball" AND club = "laredo apaches"
What was the date when there were 26 golden tickets?
SELECT date FROM table_name_57 WHERE golden_tickets = 26
How many throws did Torey have?
SELECT throws FROM table_name_77 WHERE first = "torey"
What is the appliance at the station in St Neots?
SELECT appliances FROM table_name_69 WHERE location = "st neots"
What is the sum of Sylvain Guintoli's laps?
SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli"
When less than 30 games have been played what is the average goals scored?
SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 30
Which Engine has a Model of sl500, and a Chassis smaller than 129.067?
SELECT MIN(engine) FROM table_name_60 WHERE model = "sl500" AND chassis < 129.067
How many different source system code for the cmi cross references are there?
SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references
Provide the contact email of Moss Zarb.
SELECT email FROM customer WHERE first_name = 'Moss' AND last_name = 'Zarb'
What is the percentage of the number of 4-year public schools from Madison Area Technical College's home state in the Alabama?
SELECT CAST(COUNT(DISTINCT CASE WHEN T1.state = ( SELECT T1.state FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state WHERE T1.chronname = 'Madison Area Technical College' ) AND T1.level = '4-year' AND T1.control = 'Public' THEN T1.chronname ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT CASE WHEN T2.state = 'Alabama' THEN T1.chronname ELSE NULL END) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state
Provide the genre ID of the movie with the title of "The Dark Knight".
SELECT T2.genre_id FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Dark Knight'
What is the lowest Attendance when the home team was slough town?
SELECT MIN(attendance) FROM table_name_62 WHERE home_team = "slough town"
What is the date deng (20) had high points?
SELECT date FROM table_11960610_10 WHERE high_points = "Deng (20)"
Why did Mrs. Annabelle Pouros take leucovorin 100 mg injection on 1970/12/19? State the reason.
SELECT T2.reasondescription FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Annabelle' AND T1.last = 'Pouros' AND T2.start = '1970-12-19' AND T2.description = 'Leucovorin 100 MG Injection'
What's the mean game number for the olympiacos team when there's less than 17 rebounds?
SELECT AVG(games) FROM table_name_75 WHERE team = "olympiacos" AND rebounds < 17
Of the customers with two orders or less, what are their names?
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count ( * ) < = 2
what is the material of the surface in noida , uttar pradesh, india
SELECT surface FROM table_29127804_3 WHERE location = "Noida , Uttar Pradesh, India"
What Captain has Lost 13?
SELECT captain FROM table_name_28 WHERE lost = 13
How many legislators have an Instagram account?
SELECT COUNT(*) FROM `social-media` WHERE instagram IS NOT NULL AND instagram <> ''
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r"
What was part 2 when part 4 was *haldanaz?
SELECT part_2 FROM table_name_69 WHERE part_4 = "*haldanaz"
List the titles of all the books that Peter H. Smith wrote.
SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Peter H. Smith'
What winning team has volleyball as the sport?
SELECT winning_team FROM table_name_91 WHERE sport = "volleyball"
From 1962 to 1975, how many coaches received the award?
SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 1975
Which event has a Round larger than 2?
SELECT event FROM table_name_88 WHERE round > 2
What is the original title of the film submitted by Greece?
SELECT original_title FROM table_18994724_1 WHERE submitting_country = "Greece"
Return the the details of all products.
SELECT DISTINCT product_details FROM products
List the first name, last name, height and weight of the players who has all free throw attempted successfully made.
SELECT DISTINCT T1.firstName, T1.lastName, T1.height, T1.weight FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.ft_attempted > 0 AND ft_attempted = ft_made
How many calories does the turkey tenderloin bundles recipe have?
SELECT T2.calories FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Turkey Tenderloin Bundles'
What is Result, when Year is 1948, and when Date is November 7?
SELECT result FROM table_name_31 WHERE year = 1948 AND date = "november 7"
How many cities have a stadium that was opened before the year of 2006?
SELECT count(DISTINCT city) FROM stadium WHERE opening_year < 2006
what is the sum of tonnage when the type of ship is twin screw ro-ro motorship and the date entered service is 11 february 1983?
SELECT SUM(tonnage) FROM table_name_73 WHERE type_of_ship = "twin screw ro-ro motorship" AND date_entered_service = "11 february 1983"
How many departments are led by heads who are not mentioned?
SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management);
Who was the writer of the episode number in series 4?
SELECT written_by FROM table_16581695_2 WHERE no_in_series = "4"
What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0?
SELECT AVG(total) FROM table_name_85 WHERE rank > 11 AND nation = "switzerland" AND silver < 0
What are the names of cities, as well as the names of the counties they correspond to?
SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
What is the Date with a Time of 17:37, and the Set 4 is 25–15?
SELECT date FROM table_name_38 WHERE time = "17:37" AND set_4 = "25–15"
list out the room names
SELECT roomName FROM Rooms
What are the details and ways to get to tourist attractions related to royal family?
SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID
Name surface for 8 round
SELECT surface FROM table_23385853_1 WHERE round = 8
What is the total of Greece, which is placed below 8?
SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece" AND place > 8
Provide the weight of the shipment to U-haul Center Of N Syracuse on 2016/9/21.
SELECT T1.weight FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.cust_name = 'U-haul Center Of N Syracuse' AND T1.ship_date = '2016-09-21'
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3
SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3
Which Calendar has WYSIWYG Editor of yes and an Unread message tracking of yes?
SELECT calendar FROM table_name_56 WHERE wysiwyg_editor = "yes" AND unread_message_tracking = "yes"
Indicate the title of all the pages in which the word comunitat appears.
SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'comunitat'
What was the career of the rank higher than 1, with an average less than 36.13 and 15 wickets, and player George O'Brien?
SELECT career FROM table_name_71 WHERE rank > 1 AND average < 36.13 AND wickets = 15 AND player = "george o'brien"
Among the root beers sold in bottles, how many are sold at the location 38.559615, -121.42243?
SELECT COUNT(T4.BrandID) FROM `transaction` AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID INNER JOIN location AS T3 ON T1.LocationID = T3.LocationID INNER JOIN rootbeer AS T4 ON T1.RootBeerID = T4.RootBeerID WHERE T2.Latitude = 38.559615 AND T2.Longitude = -121.42243 AND T4.ContainerType = 'Bottle'
What are the names of organizations, ordered by the date they were formed, ascending?
SELECT organization_name FROM organizations ORDER BY date_formed ASC
Who wrote the episode with 3.92 million US viewers?
SELECT written_by FROM table_25740548_3 WHERE us_viewers__million_ = "3.92"
What is the highest age of the the Artists from the United States?
SELECT max ( age ) FROM artist WHERE country = 'United States'
What was the result for the candidate first elected in 1820?
SELECT result FROM table_2668243_19 WHERE first_elected = "1820"
What is the other that has 20.80% as the firefox?
SELECT other FROM table_name_85 WHERE firefox = "20.80%"
display the department id and the total salary for those departments which contains at least two employees.
SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2
Which IHSAA Class has a Size larger than 511?
SELECT ihsaa_class FROM table_name_84 WHERE size > 511
What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal?
SELECT COUNT(gold) FROM table_name_49 WHERE bronze = 1 AND total < 1
Display the first name and department name for each employee.
SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id
For each player, show the team and the location of school they belong to.
SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID
Find how many school locations have the word 'NY'.
SELECT count(*) FROM university WHERE LOCATION LIKE "%NY%"
Please list the names of all the suppliers for the part "hot spring dodger dim light".
SELECT T2.s_name FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_name = 'hot spring dodger dim light'
Which team of players has the smallest age? | Did you mean to ask for the team of the player with the smallest age? | yes
SELECT Team FROM player ORDER BY Age LIMIT 1
which Pada 4 has a Pada 2 of थ tha?
SELECT pada_4 FROM table_name_32 WHERE pada_2 = "थ tha"
How many cities are there in state "Colorado"?
SELECT count(*) FROM addresses WHERE state_province_county = "Colorado"
Find the names and descriptions of courses that belong to the subject named "Computer Science".
SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"
Can you tell me the Team that has the Laps of 379?
SELECT team FROM table_name_23 WHERE laps = 379
What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?
SELECT SUM(delegates) FROM table_name_22 WHERE counties_carries = 4 AND state_delegate > 1 OFFSET 903
What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?
SELECT presentation_of_credentials FROM table_name_7 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "raúl h. castro"
How many students play sports?
SELECT count(DISTINCT StuID) FROM Sportsinfo
What country has CD format and catalog RCD 10523?
SELECT country FROM table_name_45 WHERE format = "cd" AND catalog = "rcd 10523"
Show the prices of publications whose publisher is either "Person" or "Wiley"
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
Return the hosts of competitions for which the theme is not Aliens?
SELECT Hosts FROM farm_competition WHERE Theme != 'Aliens'
What was the record for the Argonauts on September 7?
SELECT record FROM table_24136814_3 WHERE date = "September 7"
What is the rental price per day of the most expensive children's film?
SELECT T1.rental_rate FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Children' ORDER BY T1.rental_rate / T1.rental_duration DESC LIMIT 1
What is the average access count of documents?
SELECT avg(access_count) FROM documents
What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?
SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.8
Tell the number of "hair removal" Yelp businesses.
SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Hair Removal'
In which year did Kati Klinzing finish 3rd?
SELECT year FROM table_name_24 WHERE third = "kati klinzing"
What is the sum of participants in 2013 for Russia when there were 5 in 2010 and less than 4 in 2012?
SELECT SUM(2013) FROM table_name_99 WHERE 2010 = 5 AND country = "russia" AND 2012 < 4
Which allergy type is most common?
SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1
What's the name of the document that was accessed the least amount of times?
SELECT document_name FROM documents ORDER BY access_count ASC LIMIT 1
Provide the movie titles and the estimated inflation rate of the highest total grossed movie.
SELECT movie_title, CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) / CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) FROM movies_total_gross ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
What are the countries that participated in both friendly and tournament type competitions?
SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'
How many of the crew members who are taller than 1.70m were born in Canada?
SELECT COUNT(name) FROM Person WHERE height_meters > 1.70 AND birth_country = 'Canada';
with distribution of 20.6% what is the code name?
SELECT code_name FROM table_name_90 WHERE distribution = "20.6%"
What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?
SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
What venue hosted the 2003 event?
SELECT venue FROM table_name_91 WHERE year = 2003
What is the average minimum and price of the rooms for each different decor.
SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;
Who is the Driver with the Team of P & L Mechanical Services?
SELECT driver FROM table_name_1 WHERE team = "p & l mechanical services"
What are the numbers of constructors for different nationalities?
SELECT count(*) , nationality FROM constructors GROUP BY nationality
hello, what are the maximum price and score of wines in each year?
SELECT max ( Price ) , max ( Score ) , YEAR FROM WINE GROUP BY YEAR
What are all the different product names, and how many complains has each received?
SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name
What is the pID for Andrew?
SELECT pID FROM Player WHERE pName = "Andrew"
Return the first names and last names of all guests
SELECT guest_first_name , guest_last_name FROM Guests
Show the name of the earliest platform in the database.
SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id ORDER BY T1.release_year ASC LIMIT 1
What is the average sales of the companies ranked 1, 2 and 3?
select avg ( sales_billion ) from company where rank = 1 or rank = 2 or rank = 3
How many games were played when the record was 26-21?
SELECT COUNT(game) FROM table_13619135_6 WHERE record = "26-21"
With a statistic of most points, what is the stage?
SELECT stage FROM table_name_7 WHERE statistic = "most points"
What are the names of all the states with college students playing in the mid position but no goalies?
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie'
How many video game types exist?
SELECT COUNT(DISTINCT gtype) FROM Video_games
What are the average, maximum, and minimum number of floors for all buildings?
SELECT AVG(floors), MAX(floors), MIN(floors) FROM building