sentence
stringlengths
3
347
sql
stringlengths
18
804
Who is Mike Wallace's primary Sponsor(s)?
SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace"
What is the number of complaints related to Credit cards came from female clients?
SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Female' AND T2.Product = 'Credit card'
When the no votes was 322682, what was the max meas. number?
SELECT MAX(meas_num) FROM table_256286_54 WHERE no_votes = 322682
What is the Visitor in the game with a Record of 11–49–7?
SELECT visitor FROM table_name_98 WHERE record = "11–49–7"
What are the speeds of the longest roller coaster?
SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
How many professors are teaching course ID 18?
SELECT COUNT(DISTINCT p_id) FROM taughtBy WHERE course_id = 18
Which removal treaty covered the chickasaw nation?
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw"
What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 points?
SELECT SUM(year) FROM table_name_10 WHERE chassis = "kurtis kraft 500a" AND points < 1.5
Tell me the format for calls of wrko
SELECT format FROM table_name_56 WHERE calls = "wrko"
Show the result of the submission with the highest score.
SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
What is the cross-code debut later than 1958 for Dick Thornett?
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
Show the solution path for the method "Mosa.Platform.x86.Instructions.IMul.EmitLegacy"?
SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy'
How many people lived in san gabriel in the year 2000?
SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = "San Gabriel"
How many cities are located in the Bay Area?
SELECT COUNT(city) FROM geographic WHERE region = 'bay area'
List all who wrote for production code 1ark07.
SELECT written_by FROM table_22835602_1 WHERE production_code = "1ARK07"
Okay! Can you show me the customer name that is associate with the lowest savings account balance?
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1
What is the length of disc 67?
SELECT length FROM table_name_13 WHERE disc = "67"
Name the record for attendance location of palace of auburn hills 15,210
SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210"
What was the original air date of the episode that was directed by Jessica Landaw?
SELECT original_air_date FROM table_26824484_1 WHERE directed_by = "Jessica Landaw"
What was the result of the game that was played on week 15?
SELECT result FROM table_name_95 WHERE week = 15
For how many contestants was the background internet dreamer?
SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = "Internet dreamer"
What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?
SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984
What venue had collingwood as the away team?
SELECT venue FROM table_name_14 WHERE away_team = "collingwood"
Among the facilities that have undergone at least one inspection in 2010, how many of them are in ward no.42?
SELECT COUNT(DISTINCT T1.license_no) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T1.inspection_date) = '2010' AND T2.ward = 42
What is that employee's name?
SELECT T1.Employee_Name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource"
What are the employee ids for employees who make more than the average?
SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)
Name the result for glenn thompson
SELECT result FROM table_25030512_41 WHERE incumbent = "Glenn Thompson"
What is the Station Code of the Destination Station Departure?
SELECT station_code FROM table_name_37 WHERE departure = "destination station"
When did Linda Smith visit Subway?
SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Provide the ISBN and price of the book with book ID 7160.
SELECT T1.isbn13, T2.price FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.book_id = 6503
What nationality has a pick of 1?
SELECT nationality FROM table_name_49 WHERE pick = "1"
List the details of the customers who do not have any policies.
SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id
What is the lowest gp?
SELECT MIN(gp) FROM table_26176081_29
What is the release date of "New Worlds for Old"?
SELECT release_date FROM table_27932399_1 WHERE release_title = "New Worlds For Old"
How many times is keauna mclaughlin / rockne brubaker ranked?
SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker"
What was the tonnage of the Great Britain ship Batna?
SELECT tonnage FROM table_name_26 WHERE nationality = "great britain" AND ship = "batna"
how many revenue in the Manufacturers table | Do you mean the sum of revenue in the Manufacturers table | what highest price in the Products table
SELECT max ( Price ) from Products
What was the percentage of the Bitcoins verifiably burned until 2018/4/28?
SELECT CAST((SUM(T2.max_supply) - SUM(T2.total_supply)) AS REAL) / SUM(T2.total_supply) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date < '2018-04-28' AND T1.name = 'Bitcoin'
Show the names of journalists and the dates of the events they reported.
SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID
Show the minimum, average, maximum order quantity of all invoices.
SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES
Find the name of projects that require between 100 and 300 hours of work.
SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
What is the decimal value when the memory map and byte string are standard, and the max memory is 512?
SELECT decimal FROM table_name_19 WHERE byte_string = "standard" AND memory_map = "standard" AND max_memory__kwords_ = 512
Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.
SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY";
What is the pair of words that is repeated the most times? Identify them by their ID.
SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )
What was Dan Selznick best time?
SELECT best FROM table_name_63 WHERE name = "dan selznick"
Who was the winning driver of the Circuit of Lausitzring?
SELECT winning_driver FROM table_name_15 WHERE circuit = "lausitzring"
What years was soc a client?
SELECT years_of_operation FROM table_name_88 WHERE client = "soc"
Find the total revenue for each manufacturer.
SELECT sum(revenue) , name FROM manufacturers GROUP BY name
which is the order date of customer id 5?
SELECT order_date FROM customer_orders where customer_id = 5
what is the average of grades?
SELECT avg ( Grade ) FROM list
what is the institution located in north newton, kansas?
SELECT institution FROM table_262527_1 WHERE location = "North Newton, Kansas"
what is the highest spartak when played is less than 15 and dynamo is less than 3?
SELECT MAX(spartak) FROM table_name_42 WHERE played < 15 AND dynamo < 3
What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?
SELECT MIN(wins) FROM table_name_88 WHERE goals_conceded < 26 AND draws = 1 AND goals_scored < 74
What is the number of points that driver fernando alonso has in the season he had 20 races?
SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = "fernando alonso"
What is the value of other religions associated with atheism at 1.86%?
SELECT other FROM table_name_80 WHERE atheism = "1.86%"
Name the competition for stephanie cox on 2011-07-02
SELECT competition FROM table_name_64 WHERE assist_pass = "stephanie cox" AND date = "2011-07-02"
WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26?
SELECT MIN(money___) AS $__ FROM table_name_1 WHERE to_par > 26
What are the names of all genres in alphabetical order, combined with its ratings?
SELECT g_name , rating FROM genre ORDER BY g_name
What are the star rating descriptions of these hotels? | You mean the hotels with price above 10000? | Yes. The ones we've been talking about.
SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000
What is the series note description of the series "SP.DYN.TO65.MA.ZS" which covers the topic "Health: Mortality" in 1967?
SELECT T2.Description FROM Series AS T1 INNER JOIN SeriesNotes AS T2 ON T1.SeriesCode = T2.Seriescode WHERE T1.SeriesCode = 'SP.DYN.TO65.MA.ZS' AND T1.Topic = 'Health: Mortality' AND T2.Year = 'YR1967'
What is the original air date for the production code of 1.12?
SELECT original_air_date FROM table_2226817_2 WHERE production_code = "1.12"
What is the rank that when Serbia is the nation, and gold is larger than 0?
SELECT SUM(rank) FROM table_name_10 WHERE nation = "serbia" AND gold > 0
What are the dates for the documents with both 'GV' type and 'SF' type expenses?
SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'
What is the average rating of inactive businesses?
SELECT CAST(SUM(stars) AS REAL) / COUNT(business_id) AS "average" FROM Business WHERE active LIKE 'FALSE'
What is the name of the artist who joined latest?
SELECT name FROM artist ORDER BY year_join DESC LIMIT 1
Name the player for fc dallas pick number less than 3
SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas"
What are the countries that are not playing cartoons written by Todd Casey?
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
What Records Time is 3:38?
SELECT record FROM table_name_19 WHERE time = "3:38"
State the number of questions that were asked in the "mental health survey for 2018".
SELECT COUNT(T1.QuestionID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018'
Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain?
SELECT gold FROM table_name_65 WHERE bronze = "1" AND rank = "47" AND nation = "spain"
What is Christian Malcolm´s highest react when his time was below 20.58?
SELECT MAX(react) FROM table_name_72 WHERE time < 20.58 AND athlete = "christian malcolm"
Which Points have a Draw of 2?
SELECT AVG(points) FROM table_name_46 WHERE draw = 2
What are the code and description of the most frequent behavior incident type?
SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1
What are their names?
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_id = 15
What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001?
SELECT MIN(lane) FROM table_name_28 WHERE country = "france" AND react < 0.14100000000000001
The character Donald Duck has appeared in two Disney movies, which one has more grossing?
SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Donald Duck' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS REAL) DESC LIMIT 1
Return the category code and typical price of 'cumin'.
SELECT product_category_code , typical_buying_price FROM products WHERE product_name = "cumin"
What are the rank timeslots where ratings are 4.1?
SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.1"
What was the 1st leg for Team 2 Concepto Egile?
SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile"
List the names of the city with the top 5 white percentages.
SELECT Name FROM city ORDER BY White DESC LIMIT 5
What is the average year with a 1:42.85 time?
SELECT AVG(year) FROM table_name_81 WHERE time = "1:42.85"
What is the most common keyword among all the movies released in 2006?
SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.release_date LIKE '2006%' GROUP BY T3.keyword_name ORDER BY COUNT(T3.keyword_name) DESC LIMIT 1
What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?
SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron")
what's the evening gown where state is south dakota
SELECT evening_gown FROM table_12094609_1 WHERE state = "South Dakota"
Give the flight numbers of flights landing at APG.
SELECT FlightNo FROM FLIGHTS WHERE DestAirport = "APG"
What Tournament was against Daniel Elsner?
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
Which year has an Organization of new york yankees, and a Team of johnson city yankees?
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees"
What date was Ipswich Town the away team?
SELECT date FROM table_name_76 WHERE away_team = "ipswich town"
What team has fewer than 203 points?
SELECT team FROM table_name_66 WHERE points < 203
What is Cuba's ICAO?
SELECT icao FROM table_name_63 WHERE country = "cuba"
What was the margin of victory for Olazabal in the German Masters?
SELECT margin_of_victory FROM table_name_78 WHERE tournament = "german masters"
What is the average points for the chassis LOLA LC88?
SELECT AVG(points) FROM table_name_2 WHERE chassis = "lola lc88"
how many browser id?
SELECT count ( distinct browser_id ) from accelerator_compatible_browser
what is the engineer's first name that starting with 'E'?
SELECT first_name from Maintenance_Engineers where first_name like "E%"
What is the Tournament, on the Week of May 5?
SELECT tournament FROM table_name_4 WHERE week = "may 5"
Find the committees that have delegates both from from the democratic party and the liberal party.
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal"
Give the state that has the most customers.
SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1
What is the save of the game where moran (1-2) lost?
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)"
What is Marplan, when Gallup is 1.5%
SELECT marplan FROM table_name_55 WHERE gallup = "1.5%"
Name the total number of division for fa cups being 9
SELECT COUNT(division) FROM table_2979789_1 WHERE fa_cup_apps = 9