sentence
stringlengths
3
347
sql
stringlengths
18
804
* I have left the chat *
SELECT COUNT ( DISTINCT T2.enzyme_id ) FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE name = "Asenapine"
What kilometer (Rizal Park-basis) has a kilometer of 25?
SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = "25"
How many times was country considered when starky % was 20.96%
SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
How many status figures does James Finch have?
SELECT COUNT(status) FROM table_27514362_7 WHERE entrant = "James Finch"
For each zip code, how many times has the maximum wind speed reached 25 mph?
SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code
What's the sum of the Pick that has the Player of Robert Ingalls?
SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls"
What is the name, location and seating for the most recently opened track?
SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1
What was the Score on November 10, 2007?
SELECT score FROM table_name_76 WHERE date = "november 10, 2007"
Which bridge is located in Nectar, in Blount County?
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"
What is the average total number of passengers for all airports that the aircraft "Robinson R-22" visits?
SELECT avg(T3.Total_Passengers) 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 T1.Aircraft = "Robinson R-22"
Which Record has a Date of may 31?
SELECT record FROM table_name_55 WHERE date = "may 31"
Name the original title directed by luis buñuel
SELECT original_title FROM table_name_85 WHERE director = "luis buñuel"
What is the sum of FA Cup goals when there are 19 league goals?
SELECT SUM(fa_cup_goals) FROM table_name_5 WHERE league_goals = "19"
What is the most recent year that China won a bronze?
SELECT MAX(year) FROM table_name_77 WHERE bronze = "china"
What is the name of the oldest person who participated in the Olympic Games?
SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age DESC LIMIT 1
What is Roman Bragin's position?
SELECT position FROM table_14038363_1 WHERE player = "Roman Bragin"
Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.
SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2
What venue has more than 50,715 attending?
SELECT venue FROM table_name_45 WHERE attendance > 50 OFFSET 715
Name the sanskrit word and meaning for aquarius
SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
Which country has the tallest person in the crew?
SELECT birth_country FROM Person ORDER BY height_meters DESC LIMIT 1;
What is the Attendance of Game 24?
SELECT SUM(attendance) FROM table_name_94 WHERE game = 24
What was the Tie no when the Home team was Ramsgate?
SELECT tie_no FROM table_name_20 WHERE home_team = "ramsgate"
Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape?
SELECT SUM(CASE WHEN T1.shape IN ('bucket', 'elipse') THEN 1 ELSE 0 end)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'
What is the location of the kanyakumari government medical college?
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college"
What is the average total gross for the movies featuring Sterling Holloway?
SELECT SUM(CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL)) / COUNT(T2.movie_title) FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie = T2.movie_title WHERE T1.`voice-actor` = 'Sterling Holloway'
Which series is in position nc?
SELECT series FROM table_25740774_1 WHERE position = "NC"
How many Barangays lived in the municipality with area coordinator of 110.95?
SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = "110.95"
When was the note a vocals and the album north (original motion picture soundtrack)?
SELECT year FROM table_name_62 WHERE note = "vocals" AND album = "north (original motion picture soundtrack)"
What is the Lane of the swimmer from Uzbekistan in Heat 1?
SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 AND nationality = "uzbekistan"
When the venue is away and the opponents are the bracknell bees, what is the competition?
SELECT competition FROM table_name_88 WHERE venue = "away" AND opponent = "bracknell bees"
What is the Wheelbase for Model 97300?
SELECT wheelbase__mm_inch_ FROM table_20866024_4 WHERE model_designation = "97300"
What is Television Service, when HDTV is No, and when Language is Italian?
SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian"
What was the score of the game on December 11?
SELECT score FROM table_17360840_6 WHERE date = "December 11"
What is the lowest value in April with New York Rangers as opponent for a game less than 82?
SELECT MIN(april) FROM table_name_90 WHERE opponent = "new york rangers" AND game < 82
What is Record, when Date is Oct 19?
SELECT record FROM table_name_30 WHERE date = "oct 19"
Among the cities with area code 608, how many cities implement daylight savings?
SELECT COUNT(T2.city) FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 608 AND T2.daylight_savings = 'Yes'
List all the name of the customers that received a shipment in February 2017.
SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_date LIKE '2017-02%'
What is the Branding with a Callsign DWLL?
SELECT branding FROM table_name_99 WHERE callsign = "dwll"
What is the Date with a Runner(s)-up that is jerry steelsmith?
SELECT date FROM table_name_69 WHERE runner_s__up = "jerry steelsmith"
How many students are members of the club "Bootup Baltimore"?
SELECT count ( * ) from Club as T1 join member_of_club as T2 on T1.clubid = T2.clubid where T1.clubname = "Bootup Baltimore"
mention the city code of the city that the most students live.
SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count ( * ) DESC LIMIT 1
What are the names and countries of members?
SELECT Name , Country FROM member
WHAT IS BIRTH YEAR of aardsda01
SELECT birth_year from player where player_id = 'aardsda01'
Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
Please provide the age group of any LG Nexus 4 device users.
SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'LG' AND T2.device_model = 'Nexus 4'
what is the average of attendance?
SELECT AVG ( Attendance ) FROM performance
Which city has hosted the most events?
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
What are the package options and the name of the series for the TV Channel that supports high definition TV?
SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = "yes"
How many transcripts are listed?
SELECT count(*) FROM Transcripts
Which premier team played the 1951 NSWRFL Grand Final?
SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final"
List all the product names and categories of the highest reorder level.
SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID ORDER BY T2.ReorderLevel DESC LIMIT 1
For model volvo, how many cylinders does the car with the least accelerate have?
SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate LIMIT 1
What is the lowest number of states contested under apna dal?
SELECT MIN(states_contested) FROM table_22582663_1 WHERE party_name = "Apna Dal"
Show all countries and the number of people from each country.
SELECT country , count(*) FROM people GROUP BY country
Find the name of students who have taken the prerequisite course of the course with title International Finance.
SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')
Who is the player from Denmark who plays position c?
SELECT player FROM table_name_68 WHERE position = "c" AND nationality = "denmark"
What was the score for the away team southport?
SELECT score FROM table_name_13 WHERE away_team = "southport"
What is the school code of the accounting department?
SELECT school_code FROM department WHERE dept_name = "Accounting"
What is the official name of the municipality whose name in Spanish is Vitoria?
SELECT official_name FROM table_300283_1 WHERE name_in_spanish = "Vitoria"
I want to know the final score for december 27
SELECT final_score FROM table_name_74 WHERE date = "december 27"
What was the total number of seats won where the % of votes is equal to 20.29?
SELECT COUNT(seats_won) FROM table_149330_1 WHERE _percentage_of_votes = "20.29"
What is the country with a 68-73-69=210 score?
SELECT country FROM table_name_91 WHERE score = 68 - 73 - 69 = 210
Who is the youngest player who is still living. State the given name and date of birth.
SELECT nameGiven , nameGiven , birthYear, birthMon, birthDay FROM Master WHERE deathYear IS NULL ORDER BY birthYear DESC, birthMon DESC, birthday DESC LIMIT 1
What was the result of the singer with the top 8?
SELECT result FROM table_name_39 WHERE episode = "top 8"
What rank was the swimmer in lane 4?
SELECT rank FROM table_name_41 WHERE lane = 4
What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?
SELECT COUNT(area__km_2__) FROM table_name_20 WHERE population < 90
List the council tax ids and their related cmi cross references of all the parking fines.
SELECT council_tax_id , cmi_cross_ref_id FROM parking_fines
Show ids for all the male faculty.
SELECT FacID FROM Faculty WHERE Sex = 'M'
Calculate the average of repetitions in the pages that have a total of 100 different words.
SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.page) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 100
What is the 1994 finish associated with a 1995 finish of 3R and 1997 of QF?
SELECT 1994 FROM table_name_92 WHERE 1997 = "qf" AND 1995 = "3r"
What product is the least shipped to the postal code 28023?
SELECT T4.ProductName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID WHERE T1.PostalCode = 28023 ORDER BY T3.Quantity LIMIT 1
List down the number of inhabitants of customers with a widowed marital status and false response .
SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.MARITAL_STATUS = 'Widowed' AND T2.RESPONSE = 'true'
How many churches have a wedding in year 2016?
SELECT COUNT (DISTINCT church_id) FROM wedding WHERE YEAR = 2016
What is the results in 2004 that has a 2013 result of 2r?
SELECT 2004 FROM table_name_72 WHERE 2013 = "2r"
Find the last names of all the authors that have written a paper with title containing the word "Monadic".
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Monadic%"
List all books published by ADV Manga.
SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'ADV Manga'
Which manufacturer has a time of +10.142?
SELECT manufacturer FROM table_name_11 WHERE time = "+10.142"
What is the average price of games belonging in the arcade genre which has a content rating of Everyone 10+?
SELECT AVG(Price) FROM playstore WHERE 'Content Rating' = 'Everyone 10+' AND Genres = 'Arcade'
What was the overall record of Oral Roberts college?
SELECT record FROM table_16295365_1 WHERE school = "Oral Roberts"
What round has a method of submission?
SELECT round FROM table_name_64 WHERE method = "submission"
what is november 3 when june 10-11 is june 10, 1964?
SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = "June 10, 1964"
Anthony West ride which Motorcyle?
SELECT motorcycle FROM table_name_23 WHERE rider = "anthony west"
What's the Date with the Region of Europe and has a Catalog of 28765 22392 8?
SELECT date FROM table_name_13 WHERE region = "europe" AND catalog = "28765 22392 8"
Between device ID of "-9215352913819630000" and "-9222956879900150000", mention the age and gender of device user who participated more events.
SELECT T.age, T.gender FROM ( SELECT T2.age, T2.gender, COUNT(T1.device_id) AS num FROM events AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T1.device_id BETWEEN -9215352913819630000 AND -9222956879900150000 GROUP BY T2.age, T2.gender ) AS T ORDER BY T.num DESC LIMIT 1
Who was the Winner of the French Polynesia Billabong Pro Event?
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"
Name the annual rainfail for 2002 population being 493984
SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984
What is the name of the bank branch with the greatest number of customers?
SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1
what is the rank of Mark | Do you mean the rank of the faculty whose fname is Mark? | exactly
SELECT Rank FROM FACULTY WHERE Fname = "Mark"
What is the average age of the dogs who have gone through any treatments?
SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
Which organization has a Finish of 4th?
SELECT organization FROM table_name_93 WHERE finish = "4th"
How many top 10 finishes did Ken Bouchard get in the year he won $17,695?
SELECT top_10 FROM table_2333416_2 WHERE winnings = "$17,695"
And how about their last names?
SELECT T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = "Confirmed"
Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?
SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam"
What is the average heights of crew members from Animation Department?
SELECT AVG(T1.height_meters) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Animation Department';
If the points is 20, what was the team name?
SELECT team FROM table_17693171_1 WHERE points = "20"
Who is the director of kon-tiki original title?
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
What is listed in notes for the athlete, lassi karonen?
SELECT notes FROM table_name_46 WHERE athlete = "lassi karonen"
What is the language that was used most often in songs with resolution above 500?
SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1
What was the venue where the result was 12th?
SELECT venue FROM table_name_73 WHERE result = "12th"
what percent of slovenes did the village called čahorče in slovenian have in 1991?
SELECT percent_of_slovenes_1991 FROM table_10797463_1 WHERE village__slovenian_ = "Čahorče"