sentence
stringlengths
3
347
sql
stringlengths
18
804
what's the district with candidates being john e. rankin (d) unopposed
SELECT district FROM table_1342379_23 WHERE candidates = "John E. Rankin (D) Unopposed"
Who were the opponents in the match that was played on a hard court and had a runner-up outcome?
SELECT opponents FROM table_name_84 WHERE surface = "hard" AND outcome = "runner-up"
What is the longitude and latitude for the district represented by Grayson Alan?
SELECT T1.latitude, T1.longitude FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Grayson' AND T3.last_name = 'Alan'
Who was the home team for the game that has a Tie value of 3?
SELECT home_team FROM table_name_36 WHERE tie_no = "3"
Show all cities along with the number of drama workshop groups in each city.
SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town
What was the club when home ground was Central Reserve?
SELECT club FROM table_name_59 WHERE home_ground = "central reserve"
Which Video has a PSIP Short Name of rt?
SELECT video FROM table_name_53 WHERE psip_short_name = "rt"
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5
How many people attended the game in week 13?
SELECT attendance FROM table_name_60 WHERE week = 13
Who were the runners-up in the tournament on May 26, 1996?
SELECT runner_s__up FROM table_name_93 WHERE date = "may 26, 1996"
What is the highest average that has 6 dances and a total of over 128?
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128
Which player had 252 appearances
SELECT name FROM table_24565004_7 WHERE appearances¹ = 252
What is the total decile with an Area of whitianga, and a Roll smaller than 835?
SELECT SUM(decile) FROM table_name_64 WHERE area = "whitianga" AND roll < 835
What date was there a game larger than 17?
SELECT date FROM table_name_20 WHERE game > 17
Which gene has the subject number 21?
SELECT gene FROM table_name_28 WHERE subject_number = "21"
What is the prothrombin time of von willebrand disease?
SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = "Von Willebrand disease"
What is the long in 1994?
SELECT long FROM table_name_60 WHERE year = "1994"
Find the countries that have never participated in any competition with Friendly type
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'
Tell me the service id of the customer id 10 ?
SELECT service_id FROM Party_Services WHERE customer_id = "10"
What county is associated with ansi code 1759686?
SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686
From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?
SELECT league_from FROM table_name_69 WHERE nhl_team = "atlanta thrashers (from dallas) 6"
What are the notes of the satellite whose nssdc id number is 1959-002a?
SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A"
Show all game names played by Linda Smith
SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda"
What is the id of the longest song?
SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
What type was issued in 1964?
SELECT type FROM table_name_1 WHERE issued = 1964
What RolePlay actor played the same role Alison Pargeter played in the original production?
SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
Find the total hours of all projects.
SELECT sum(hours) FROM projects
What is the record on Sept 22?
SELECT record FROM table_23624542_4 WHERE date = "Sept 22"
Who directed the episode with production code 177605?
SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605
What tournament is in katowice?
SELECT tournament FROM table_19765685_2 WHERE city = "Katowice"
Show all the planned delivery dates and actual delivery dates of bookings.
SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS
Who was the turbine manufacturer of the wind farm that started service on 2005?
SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = "2005"
Name the goals for daniel sanchez
SELECT goals¹ FROM table_24565004_20 WHERE name = "Daniel Sanchez"
What is the highest total when bronze is less than 1 and gold more than 0?
SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0
what is the least bronze when gold is more than 0 for russia?
SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 AND nation = "russia"
Find the cities that have more than one employee under age 30.
SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1
If the stadium name is the Thuwunna Stadium, what is the date?
SELECT date FROM table_25428629_1 WHERE stadium = "Thuwunna stadium"
Find the number of classes in each department.
SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code
What was the word on episode number 673?
SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673
Who was Judge Jack Edward Tanner's chief judge?
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner"
Which Bronze has a Total of 11, and a Silver smaller than 6?
SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6
What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?
SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = "christ church greyfriars"
What are the attributes that business number 56 have?
SELECT T1.attribute_name FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T2.business_id = 56
What was the score of the game on November 9 when Atlanta was the visiting team?
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 9"
Which model has the least amount of RAM? List the model name and the amount of RAM.
SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;
Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?
SELECT set_2 FROM table_name_45 WHERE date = "25 may" AND set_3 = "21–25"
Name the capacity for single cab size 2 medium tanker
SELECT capacity__litres_ FROM table_2155350_2 WHERE cab_size = "Single" AND category = "2 Medium tanker"
What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?
SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.8
What are the average, maximum and total revenues of all companies?
SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers
Find the names of females who are friends with Zach
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'
which program owners have programs in the morning and the night
SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"
What competition had its first match on December 20, 2007?
SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007"
Among the store contact employees, how many of them have a Vista credit card?
SELECT COUNT(T1.FirstName) FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T3.CardType = 'Vista' AND T1.PersonType = 'SC'
What was the minimum number for opponents?
SELECT MIN(opponents) FROM table_24560733_1
The product 'Mozzarella di Giovanni' belongs in which category? Include the category's description as well.
SELECT T2.CategoryName, T2.Description FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.ProductName = 'Mozzarella di Giovanni'
Who had the lowest Best time that also had a Qual 2 of 49.887?
SELECT MIN(best) FROM table_name_13 WHERE qual_2 = "49.887"
How many current clubs have the player Aigars Vitols?
SELECT COUNT(current_club) FROM table_23670057_7 WHERE player = "Aigars Vitols"
Find the maximum and average capacity among rooms in each building.
SELECT MAX(capacity), AVG(capacity), building FROM classroom GROUP BY building
How many Touchdowns have Extra points larger than 0, and Points of 48?
SELECT COUNT(touchdowns) FROM table_name_84 WHERE extra_points > 0 AND points = 48
WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?
SELECT project_management FROM table_name_9 WHERE blogs = "no" AND xml_forms_management_and_workflow = "no" AND enterprise_search = "no" AND social_software = "no"
What is the episode title for number 7 in the season?
SELECT title FROM table_23981882_1 WHERE no_in_season = 7
What is the pixel aspect ratio and country of origin for all TV channels that do not use English?
SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'
What is the best top-5 when top-10 is 1 and there are more than 0 wins?
SELECT MAX(top_5) FROM table_name_93 WHERE top_10 = 1 AND wins > 0
Who directed the film titled 'Steam of Life'?
SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = "Steam of Life"
How many members were added at the nchc (men only) conference?
SELECT members_added FROM table_27671835_3 WHERE conference = "NCHC (men only)"
Show the product type and name for the products with price higher than 1000 or lower than 500.
SELECT product_type_code , product_name FROM products WHERE product_price > 1000 OR product_price < 500
Please show different denominations and the corresponding number of schools.
SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination
What is the name of the department head of General Medicine?
SELECT T2.name FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID where T1.name = 'General Medicine'
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young"
When 9 games (28,002 avg.) is the results of the games what is the date/year?
SELECT date_year FROM table_21436373_7 WHERE result_games = "9 games (28,002 avg.)"
What is the name of the course with the most students enrolled?
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1
How many trains arrive at 11:00?
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00"
What are characteristic names used at least twice across all products?
SELECT t3.characteristic_name 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 GROUP BY t3.characteristic_name HAVING count(*) >= 2
What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro?
SELECT callsign FROM table_name_31 WHERE branding = "93dot5 home radio cagayan de oro"
What is the directed/undirected for mfinder, which has a network-centric basis?
SELECT directed___undirected FROM table_name_83 WHERE name = "mfinder" AND basis = "network-centric"
What is the sexual abuse rate where the conflict is the Second Sudanese Civil War?
SELECT MIN(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = "Second Sudanese Civil War"
What IHSAA Football Class has 20 elkhart as the county?
SELECT ihsaa_football_class FROM table_name_39 WHERE county = "20 elkhart"
Count the number of customers recorded.
SELECT count(*) FROM CUSTOMERS
How many fault status codes are recorded in the fault log parts table?
SELECT DISTINCT fault_status FROM Fault_Log_Parts
Name the place with building of victoria hall
SELECT place FROM table_name_93 WHERE building = "victoria hall"
Who is the winner and score of the tournament with semifinalists goran prpić sergi bruguera?
SELECT winner_and_score FROM table_name_43 WHERE semifinalists = "goran prpić sergi bruguera"
Who was the celebrity who finished in 7th place?
SELECT celebrity FROM table_name_91 WHERE finished = "7th"
Sort the list of all the first and last names of authors in alphabetical order of the last names.
SELECT fname , lname FROM authors ORDER BY lname
Show the official names of the cities that have hosted more than one competition.
SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1
What is the name of Aleko Berdzenishvili's song?
SELECT song FROM table_name_18 WHERE artist = "aleko berdzenishvili"
What opponents have a record of 90-70?
SELECT opponent FROM table_name_34 WHERE record = "90-70"
How many journalists have worked for more than 5 years?
SELECT COUNT ( * ) FROM journalist WHERE years_working > 5
How much is the most expensive wine produced in Sonoma County?
SELECT max ( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Sonoma"
Which country is Mountain Cerro Chirripo located in? Give the full name of the country.
SELECT DISTINCT T1.Name FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T2.Mountain = 'Cerro Chirripo'
How many trips made by a subscriber started in August, 2013 from a station that can hold more than 20 bikes?
SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T1.id = T2.start_station_id WHERE T2.subscription_type = 'Subscriber' AND T2.start_date LIKE '8/%/2013%' AND T1.dock_count > 20
Find the organisation type description of the organisation detailed as 'quo'.
SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'
How much is the total urban population of middle income countries in 1960?
SELECT SUM(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup LIKE '%middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Urban population'
What is the name of the organization which most of the students are enlisted in?
SELECT organ FROM ( SELECT organ, COUNT(organ) AS num FROM enlist GROUP BY organ ) T ORDER BY T.num DESC LIMIT 1
Calculate the total points scored by team ID ANA and list down the coashes of the team.
SELECT SUM(T2.Pts), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T2.tmID = T1.tmID WHERE T2.tmID = 'ANA' GROUP BY T1.coachID
What is the famous release date of the artist with the oldest age?
SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers?
SELECT original_airdate FROM table_17467578_1 WHERE us_viewers__million_ = "3.73"
What are the different names for all songs that have a higher resolution than English songs?
SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = "english")
What were Will Rackley's total rounds?
SELECT COUNT(round) FROM table_name_89 WHERE name = "will rackley"
Which title has content including mysticism, spiritualism, and a translation of the minaret of light?
SELECT title FROM table_name_86 WHERE content = "mysticism, spiritualism" AND translation = "the minaret of light"
Tell me the result for lincoln financial field december 11, 2005
SELECT result FROM table_name_90 WHERE venue = "lincoln financial field" AND date = "december 11, 2005"