sentence
stringlengths
3
347
sql
stringlengths
18
804
What are all sports names?
select distinct SportName from SportsInfo
What was the gender of the contestant on RR: South Pacific season?
SELECT gender FROM table_18974269_1 WHERE original_season = "RR: South Pacific"
What game site has a result of bye?
SELECT game_site FROM table_name_52 WHERE result = "bye"
List line items shipped by truck with delivery time before 1997.
SELECT l_linenumber FROM lineitem WHERE STRFTIME('%Y', l_shipdate) < 1997 AND l_shipmode = 'truck'
Who directed episode number 3?
SELECT directed_by FROM table_158088_2 WHERE episode_no = 3
What was the Opponent before Week 11 with an Attendance of 63,571?
SELECT opponent FROM table_name_94 WHERE week < 11 AND attendance = "63,571"
What is the time for the second qualification where the first qualification time was 1:21.523?
SELECT qual_2 FROM table_name_21 WHERE qual_1 = "1:21.523"
what is the engine for year less than 1959 and points more than 4?
SELECT engine FROM table_name_7 WHERE year < 1959 AND points > 4
Provide the country, population, capital city, and official language of the country with the smallest surface area.
SELECT T1.Name, T1.Population, T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' ORDER BY T1.SurfaceArea LIMIT 1
What is the first name of the legislator whose address at 1005 Longworth HOB; Washington DC 20515-1408?
SELECT T1.first_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.address = '1005 Longworth HOB Washington DC 20515-1408' GROUP BY T1.first_name
What was the result when the time was 4:15?
SELECT res FROM table_name_66 WHERE time = "4:15"
List all deserts that are not between latitudes 30 and 40.
SELECT Name FROM desert WHERE Latitude < 30 OR Latitude > 40
Then my last inquiry, could you please let me know Amersham's high temperature and wind speed on Friday?
SELECT t1.high_temperature,t1.wind_speed_mph FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id where t1.day_of_week = 'Friday' and T2.network_name = 'Amersham'
In which week was the team record 7–2?
SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2"
Indicate the name of the products that have been shipped to the city of Paris.
SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.ShipCity = 'Paris'
When the Flap is less than 15 and the podium is larger than 11, what is the pole?
SELECT pole FROM table_name_95 WHERE flap < 15 AND podium > 11
What is the largest payment amount?
SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
On what surface did a score of 4–6 6–3 6–4 occur at the Tournament of Lahore?
SELECT surface FROM table_name_78 WHERE tournament = "lahore" AND score = "4–6 6–3 6–4"
What country has an LP format, catalog s 31503?
SELECT country FROM table_name_20 WHERE format = "lp" AND catalog = "s 31503"
Excellent. Can you include to this list the review rating for each of these items?
SELECT T1.title, T1.i_id, rating FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3
In which county is the swann covered bridge located?
SELECT county FROM table_name_4 WHERE name = "swann covered bridge"
Find the name of the swimmer who has at least 2 records.
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*) >= 2
Who is the director of the movie Sex, Drink and Bloodshed?
SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'
What was the average points in the quarterfinals domestic cup?
SELECT AVG(points) FROM table_name_72 WHERE domestic_cup = "quarterfinals"
What date has wrexham as the home team?
SELECT date FROM table_name_69 WHERE home_team = "wrexham"
What school has the greyhounds as mascots?
SELECT school FROM table_name_56 WHERE mascot = "greyhounds"
What are all the locations with a cinema?
SELECT DISTINCT LOCATION FROM cinema
State the ID number for the attribute named "Accepts Insurance"?
SELECT attribute_id FROM Attributes WHERE attribute_name = 'Accepts Insurance'
Who was the director of the episode written by Russell T Davies and James Moran?
SELECT director FROM table_name_67 WHERE writer = "russell t davies and james moran"
What is the average number of bank customers?
SELECT avg(no_of_customers) FROM bank
What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?
SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81
What is the name of the company which has market value 213.7?
SELECT Company FROM company where Market_Value = 213.7
what position did the player from connecticut play
SELECT position FROM table_10015132_7 WHERE school_club_team = "Connecticut"
Where did Celestino Tugot place?
SELECT place FROM table_name_43 WHERE player = "celestino tugot"
what is the maximum rank with per capita income being $17,013
SELECT MAX(rank) FROM table_1350350_2 WHERE per_capita_income = "$17,013"
Which player played for Western Kentucky?
SELECT player FROM table_name_61 WHERE school_club_team = "western kentucky"
What is the typical selling price of product paper?
SELECT typical_selling_price FROM products where product_name = 'peper'
Please list the short name of countries which have the latest trade data after 2010.
SELECT ShortName FROM Country WHERE LatestTradeData > 2010
For the Temple Square station, what is the park & ride lot name?
SELECT park_and_ride_lot FROM table_name_53 WHERE station_name = "temple square"
What is the competition that occured on 27 July 2004?
SELECT competition FROM table_name_98 WHERE date = "27 july 2004"
What is the highest win for losses less than 2?
SELECT MAX(wins) FROM table_name_65 WHERE losses < 2
How many trains with fully loaded head cars are running east?
SELECT COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_num = 3
how many parties are on the table?
SELECT count ( * ) FROM parties
What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?
SELECT province FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard"
When the entrant is fred saunders what is the driver?
SELECT driver FROM table_name_11 WHERE entrant = "fred saunders"
How many of them are females?
SELECT count ( * ) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F'
Who was the manufacturer in the year when the race lasted 2:30:28?
SELECT manufacturer FROM table_2266976_1 WHERE race_time = "2:30:28"
What is the July temperature where the annual precipitation is 514mm (20.2in)?
SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)"
How many years have a Catalog Number of 80429 / bta80429?
SELECT COUNT(year) FROM table_name_69 WHERE catalog_number = "80429 / bta80429"
What are the sales in Japan for the release totaling 1.82 million?
SELECT japan FROM table_name_88 WHERE total = "1.82 million"
When Tujunga is moderate, what is La Crescenta-Montrose?
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
Find the parties associated with the delegates from district 1. Who served as governors of the parties?
SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1
Find the name and hours of project that has the most number of scientists.
SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?
SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0
How many times is the sodium content in Lasagne-Spinach Spirals to Beef and Spinach Pita Pockets?
SELECT CAST(SUM(CASE WHEN T1.title = 'Lasagne-Spinach Spirals' THEN T2.sodium ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.title = 'Beef and Spinach Pita Pockets' THEN T2.sodium ELSE 0 END) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id
Which gender makes up the majority of the staff?
SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1
Hmm, I also want to know how many mills are built by Canadian architects.
SELECT count ( * ) FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'Canadian'
What time for the entrant weighing 54.4kg?
SELECT time FROM table_20626467_1 WHERE weight__kg_ = "54.4kg"
From 1975 to 1980, how much is the total amount CO2 emmission in kiloton of the the world? Indicate which year the world recorded its highest CO2 emmissions.
SELECT SUM(T1.Value), T1.Year FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'CO2 emissions (kt)' AND T1.Year >= 1975 AND T1.Year < 1981 AND T1.CountryCode = 'WLD' AND T2.SpecialNotes = 'World aggregate.'
What are the different card types, and how many cards are there of each?
SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code
What are the names and distances of aircraft that have more than 5000 distance?
SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000
How many players are from energa czarni?
SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni"
What are dates of birth of all the guests whose gender is "Male"?
SELECT date_of_birth FROM Guests WHERE gender_code = "Male"
In which year did the least people enter hall of fame?
SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
What is the nationality of Acquafresca?
SELECT nat FROM table_name_9 WHERE name = "acquafresca"
What is the percentage of English used in Australia?
SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Australia' AND T2.Language = 'English'
Find the total number of matches.
SELECT COUNT(*) FROM matches
what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8?
SELECT years FROM table_name_51 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8"
that was held in 1964?
SELECT event FROM table_name_39 WHERE year = 1964
who organized the Pure Church of Christ?
SELECT organized_by FROM church where name = "Pure Church of Christ"
How many goals have a goal ration less than 0.8 with 56 games?
SELECT COUNT(goals) FROM table_name_49 WHERE goal_ratio < 0.8 AND games = 56
Can you also show me the birth dates?
SELECT T1.birth_year, T1.birth_month, T1.birth_day FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3
How much is the tax amount of the purchase order with the biggest tax amount? Indicate the purchase order ID.
SELECT TaxAmt, PurchaseOrderID FROM PurchaseOrderHeader ORDER BY TaxAmt DESC LIMIT 1
List the name of England players.
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'England'
List all countries of markets in descending order of number of cities.
SELECT Country FROM market ORDER BY Number_cities DESC
What is the name of that catalog?
SELECT catalog_name FROM catalogs WHERE catalog_publisher LIKE "%Murray%"
When the team is newman/haas racing and the grid size is 3, what's the time/retired?
SELECT time_retired FROM table_name_8 WHERE team = "newman/haas racing" AND grid = 3
Find the names of customers who are not living in the state of California.
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name 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 WHERE t3.state_province_county = 'California'
What was the earliest week the team played the chicago cardinals in front of less than 25,312?
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312
What's the density in the district with 2320529 citizens in 2011?
SELECT density_in_2011___km²_ FROM table_2801442_1 WHERE population__2011_census_ = 2320529
Find the rooms of faculties with rank professor who live in building NEB.
SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB"
How many epsidode(s) had 3.63 million viewers?
SELECT COUNT(episode__number) FROM table_22353769_3 WHERE viewers__millions_ = "3.63"
In how many venues did team 2 win the toss and lose the match?
SELECT SUM(CASE WHEN T1.Team_2 = T1.Match_Winner THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Team_1 = T1.Toss_Winner
List the id, genre and artist name of English songs ordered by rating.
SELECT f_id , genre_is , artist_name FROM song WHERE languages = "english" ORDER BY rating
What are the ids and names of the architects who built at least 3 bridges ?
SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3
What's the status of the player with 3041 points?
SELECT status FROM table_27615896_20 WHERE points = 3041
What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss?
SELECT MAX(drawn) FROM table_name_92 WHERE percentage = "0.00%" AND lost < 1
What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?
SELECT current_club FROM table_name_28 WHERE first_team_appearances = "ongoing" AND position = "midfielder" AND player = "samir carruthers"
How many games did the team play when they were 1-3?
SELECT COUNT(score) FROM table_13619053_4 WHERE record = "1-3"
Tell me the player for 7 round
SELECT player FROM table_name_74 WHERE round = 7
Who is the author of the book with the biggest page count?
SELECT T3.author_name 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 ORDER BY T1.num_pages DESC LIMIT 1
Who scored the most assists in game 59?
SELECT high_assists FROM table_15780718_8 WHERE game = 59
What was the weight in kg when the jockey was B. York?
SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York"
How many Bronze medals did Switzerland with less than 3 Silver medals receive?
SELECT MIN(bronze) FROM table_name_75 WHERE nation = "switzerland" AND silver < 3
And how many characteristics does this product have?
SELECT count ( * ) 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 WHERE t1.product_name = "laurel"
Which part has the least faults?
SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count ( * ) ASC LIMIT 1
What are the top 2 countries with the highest number of indebted suppliers?
SELECT T.n_name FROM ( SELECT T2.n_name, SUM(T1.s_acctbal) AS num FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 GROUP BY T1.s_nationkey ) AS T ORDER BY T.num LIMIT 2
what is the number of the episode in the season that had 5.60 millions of north american spectors?
SELECT no FROM table_2866509_1 WHERE us_viewers__million_ = "5.60"
what is the position when the year [A} is after 2011 and the pick is 28?
SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28"
Of them which are left footed?
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = "left" AND T2.overall_rating > = 85 AND T2.overall_rating < = 90