sentence
stringlengths
3
347
sql
stringlengths
18
804
What is the copa libertadores 1996 of team corinthians?
SELECT copa_libertadores_1996 FROM table_name_32 WHERE team = "corinthians"
Show the rank, first name, and last name for all the faculty.
SELECT rank , Fname , Lname FROM Faculty
include claim stage id in the table | Do you wanna see all the claim stage ids? | yes please
select distinct Claim_Stage_ID from Claims_Processing
For each zip code, return the average mean temperature of August there.
SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE "8/%" GROUP BY zip_code
Convert all temperature recorded at San Francisco city during August 2013 into degree Celsius.
SELECT (max_temperature_f - 32) / 1.8000 , (mean_temperature_f - 32) / 1.8000 , (min_temperature_f - 32) / 1.8000 FROM weather WHERE SUBSTR(CAST(date AS TEXT), 1, INSTR(date, '/') - 1) = '8' AND SUBSTR(CAST(date AS TEXT), -4) = '2013' AND zip_code = 94107
Please list the names of the movies that have been rated the most times in 2020.
SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2020%' GROUP BY T2.movie_title ORDER BY COUNT(T2.movie_title) DESC LIMIT 1
Please list all of the paragraphs that have the character name Aedile.
SELECT T2.ParagraphNum FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Aedile'
What Country has a Director of 2007?
SELECT country FROM table_name_43 WHERE director_s_ = "2007"
Which institution has a nickname of Blue Hens?
SELECT institution FROM table_name_88 WHERE nickname = "blue hens"
how many customers are presented on the table
SELECT COUNT ( * ) FROM Customers
What is the total of all to par with player Bob Rosburg?
SELECT SUM(to_par) FROM table_name_65 WHERE player = "bob rosburg"
What is the number of ties when Altrincham is the home team?
SELECT tie_no FROM table_name_88 WHERE home_team = "altrincham"
What's the boiling point when the density is 1.092 g/ml?
SELECT boiling_point FROM table_name_46 WHERE density = "1.092 g/ml"
Return the addresses of the course authors or tutors whose personal name is "Cathrine".
SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = "Cathrine"
Could you show me the IDs for the investors who have the top 3 number of transactions?
SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT ( * ) DESC LIMIT 3
what is the lowest attendance's ?
SELECT MIN ( Attendance ) FROM performance
Give the name, population, and head of state for the country that has the largest area.
SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
How many goals were achieved when Chievo was the club and the debut year was before 2002?
SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002
What was the QB rating for Neil lomax?
SELECT qb_rating FROM table_20906175_3 WHERE name = "Neil Lomax"
Count the products that have the color description "white" or have the characteristic name "hot".
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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot"
What is the most commmon hometowns for teachers?
SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1
What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?
SELECT livery FROM table_name_45 WHERE locomotive_type = "steam" AND year_built > 1950 AND wheel_arrangement = "2-6-2"
In total, how many orders were shipped via United Package?
SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package'
Of the 4 members, how many of them are members of the club "Pen and Paper Gaming"?
SELECT count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming"
Which College has a Year smaller than 1962, and a Position of rb?
SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb"
Please list the titles of all the films under the category of "Horror" and has a rental rate of $2.99.
SELECT T1.title 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 = 'Horror' AND T1.rental_rate = 2.99
Which recipes contain almond extract?
SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'almond extract'
What team visited the Cleveland Browns Stadium?
SELECT visiting_team FROM table_name_22 WHERE stadium = "cleveland browns stadium"
Where is the most common country across members?
SELECT Country FROM member GROUP BY Country ORDER BY COUNT ( * ) DESC LIMIT 1
Who is the director when the production code is 60034?
SELECT directed_by FROM table_28140588_1 WHERE production_code = 60034
Name the division record for riders
SELECT division_record FROM table_name_28 WHERE team = "riders"
show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.
SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id = t2.id WHERE t2.nationality = 'American' ORDER BY t1.length_feet
How many routine inspections did Tiramisu Kitchen have?
SELECT COUNT(T1.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.type = 'Routine - Unscheduled' AND T2.name = 'Tiramisu Kitchen'
What is the number of staff living in Port Melyssa and what are their names? | first name or last name? | both please
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.city = "Port Melyssa"
What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?
SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = "modern")
What is the carrier for the Samsung device?
SELECT carrier FROM device where device = "Samsung"
How many courses do the student whose id is 171 attend?
SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171
Find all procedures which cost more than 1000 or which physician John Wen was trained in.
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
Which player is from Utah?
SELECT player FROM table_11677691_7 WHERE college = "Utah"
Show all the buildings that have at least 10 professors.
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING count(*) >= 10
How many Yelp businesses are opened 24 hours?
SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Open 24 Hours' AND T2.attribute_value LIKE 'TRUE'
Tell me the time for buffalo bills
SELECT time FROM table_name_9 WHERE opponent = "buffalo bills"
what is the highest head id in the management
SELECT max ( head_ID ) from head
Which game had a result of 126-95?
SELECT game FROM table_name_88 WHERE result = "126-95"
find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.
SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion
How many students did not have any course enrollment?
SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)
What are the statement ids of those accounts, please?
SELECT Statement_ID FROM Accounts WHERE Account_details LIKE "%5%"
What are the names of the technicians that have not been assigned to repair machines?
SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)
Tell me the least silver for total less than 6 and rank of 8
SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = "8"
How much is the total fine given to Ron of Japan Inc in its inspection done on February 2014?
SELECT SUM(T3.fine) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE strftime('%Y-%m', T2.inspection_date) = '2014-02' AND T1.dba_name = 'RON OF JAPAN INC'
Which Circuit has an Event of international procar meeting?
SELECT circuit FROM table_name_10 WHERE event = "international procar meeting"
Find the number of items that did not receive any review.
SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
Which writer had voice characters of JDR, BB, TN, LR, PS?
SELECT writer FROM table_name_13 WHERE voiced_character_s_ = "jdr, bb, tn, lr, ps"
Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?
SELECT origin_of_programming FROM table_name_12 WHERE genre = "general" AND network = "ntv bangla" AND service = "cogeco cable"
On what year did Newcombe first face Clark Graebner in a final match?
SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = "Clark Graebner"
What was the score of the BCS National Championship game?
SELECT score FROM table_name_66 WHERE bowl_game = "bcs national championship"
What is the highest floor for the building measuring 220 meters?
SELECT MAX(floors) FROM table_name_97 WHERE metres > 220
What the summary of episode 15?
SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15
Can you name the drawn with a Lost of 1?
SELECT drawn FROM table_name_60 WHERE lost = "1"
what is the total of floors when the name is kölntriangle and rank is less thank 63?
SELECT SUM(floors) FROM table_name_10 WHERE name = "kölntriangle" AND rank < 63
On which day and in which zip code was the min dew point lower than any day in zip code 94107?
SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)
What's the projected population of IN-MI?
SELECT projected_2025_population FROM table_name_68 WHERE state__province = "in-mi"
What is the payment method of Devin Mills.
SELECT DISTINCT t1.payment_method FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Devin Mills"
Which state is Outagamie County in? Give the full name of the state.
SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE'
Calculate customers' total payment amount in August, 2005.
SELECT SUM(amount) FROM payment WHERE SUBSTR(payment_date, 1, 7) = '2005-08'
Show the company name with the number of gas station.
SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id
How many districts are there in the police district building with a zip code of 60608?
SELECT COUNT(*) AS cnt FROM District WHERE zip_code = 60608
What is the epicenter on January 1, 1965?
SELECT epicenter FROM table_name_88 WHERE date = "january 1, 1965"
What is the storm name of the storm that affected the greatest number of regions?
SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count ( * ) DESC LIMIT 1
What is the sum of Money ($), when Score is 70-71-70-69=280?
SELECT SUM(money___) AS $__ FROM table_name_43 WHERE score = 70 - 71 - 70 - 69 = 280
What is the total average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?
SELECT AVG(rank) FROM table_name_7 WHERE lane < 4 AND nationality = "san marino"
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = "Marcos Siega" AND written_by = "Scott Buck"
what end station name has the least amount of trips taken but still above 100 trips
SELECT end_station_name FROM trip GROUP BY zip_code HAVING count ( * ) > = 100 order by count ( * ) asc limit 1
Among the schools whose donators are teachers, what is the percentage of schools that are in Brooklyn?
SELECT CAST(SUM(CASE WHEN T1.school_city LIKE 'Brooklyn' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.teacher_acctid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.is_teacher_acct = 't'
How many movies have "vi" as their language code?
SELECT COUNT(T1.movie_id) FROM movie_languages AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_code = 'vi'
What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than 5?
SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5
what is the total home game attandance in 1871?
SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1871
what is the name of the dorms with capacity of greeter than 300
SELECT dorm_name FROM dorm WHERE student_capacity > 300
What are the member names and hometowns of those who registered at a branch in 2016?
SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016
What is the shipment ID of the heaviest shipment that Zachery Hicks transported?
SELECT T1.ship_id FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' ORDER BY T1.weight DESC LIMIT 1
For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?
SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = "Anneke Feinya Agustin Wenny Setiawati"
What Japanese prefecture has Ibaraki, Tsukuba?
SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba"
What is the earliest year with fewer than 5 wins and 89 points?
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89
Which Opposing Teams is on 06/02/1988?
SELECT opposing_teams FROM table_name_18 WHERE date = "06/02/1988"
Name the title when the main characters are grant calthorpe, lee neilan and the published in of astounding stories
SELECT title FROM table_name_84 WHERE published_in = "astounding stories" AND main_characters = "grant calthorpe, lee neilan"
What is the template type code of the template used by document with the name "Data base"?
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = "Data base"
On what day was a game played at Reese Smith Field, with a score of 4-3?
SELECT date FROM table_name_14 WHERE score = "4-3" AND site_stadium = "reese smith field"
Please list the descriptions of all the high risk violations of Tiramisu Kitchen.
SELECT DISTINCT T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T2.name = 'Tiramisu Kitchen'
How many crime against property are there?
SELECT COUNT(*) AS cnt FROM FBI_Code WHERE crime_against = 'Property'
List the game IDs that were released in 2017.
SELECT T.id FROM game_platform AS T WHERE T.release_year = 2017
What Team 1 has union douala as Team 2?
SELECT team_1 FROM table_name_46 WHERE team_2 = "union douala"
What is the occurrence of the word "nombre"?
SELECT occurrences FROM words WHERE word = 'nombre'
Find the ids of the students who participate in Canoeing and Kayaking.
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'
Where's the louisiana-lafayette as a visiting team?
SELECT site FROM table_26842217_4 WHERE visiting_team = "Louisiana-Lafayette"
Name the home team for manuka oval
SELECT home_team FROM table_14312471_3 WHERE ground = "Manuka Oval"
What is the Country when the IATA shows cju?
SELECT country FROM table_name_98 WHERE iata = "cju"
Which is the earliest founded day school to have entered the competition after 1958?
SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = "day" AND year_entered_competition > 1958
Bronze smaller than 3, and a Total smaller than 2, and a Gold larger than 1 has how many average silvers?
SELECT AVG(silver) FROM table_name_83 WHERE bronze < 3 AND total < 2 AND gold > 1
What year did the Nashville Metros have the Regular Season 2nd, central?
SELECT year FROM table_name_74 WHERE regular_season = "2nd, central"