sentence
stringlengths
3
347
sql
stringlengths
18
804
What is the title of the Catalan language Wikipedia page that has the highest number of different words?
SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
What is the location for the team name of eagles?
SELECT location FROM table_24195232_1 WHERE team_name = "Eagles"
Return the maximum enrollment across all schools.
SELECT max(Enrollment) FROM university
Find the name of students who didn't take any course from Biology department.
SELECT name FROM student WHERE NOT id IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')
Which districts have at least two addresses?
SELECT district FROM address GROUP BY district HAVING count(*) >= 2
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?
SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc"
Give the game publisher ID of records with platform ID 15.
SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 15
Name the surface for australian open for winner
SELECT surface FROM table_2009095_2 WHERE championship = "Australian Open" AND outcome = "Winner"
Show all document type codes, document type names, document type descriptions.
SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types
What grapes are red color?
SELECT grape FROM grapes where Color = "Red"
Show me the names containing cv
SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
Please show which departments have greater than 4 employees
select Name from Department where Head>4
what is the result for the week higher than 7 on november 4, 1979?
SELECT result FROM table_name_16 WHERE week > 7 AND date = "november 4, 1979"
what is the average of rank in series?
SELECT AVG ( Rank_in_series ) FROM film
How many months did a student in the Air Force miss school the most?
SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1
Name the D 46 which has a D 43 of majority→
SELECT d_46 FROM table_name_34 WHERE d_43 = "majority→"
Name the finish top 10 being 8
SELECT MAX(finish) FROM table_24119784_1 WHERE top_10 = 8
Which position was selected for by the Toronto Maple Leafs?
SELECT position FROM table_2850912_4 WHERE nhl_team = "Toronto Maple Leafs"
Can you filter the table to only include transactions with share counts that are at least 100, or with amounts bigger than 100?
SELECT share_count, amount_of_transaction FROM TRANSACTIONS where share_count > = 100 or amount_of_transaction > = 100
Which country is the youngest player from?
SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T1.Country_Id = T2.Country_Name ORDER BY T2.DOB DESC LIMIT 1
What are the names of the cities where Carl Lewis Borack competed?
SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T1.full_name = 'Carl Lewis Borack'
Please list the username of the current official Facebook presence of all the current legislators that are famous or impact.
SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.wikipedia_id IS NOT NULL GROUP BY T2.facebook
Name the audition city for hyatt regency chicago
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago"
Tell me the label for US region and catalog of 10008-2
SELECT label FROM table_name_2 WHERE region = "us" AND catalog = "10008-2"
Which Pinyin has a County of changhua?
SELECT pinyin FROM table_name_44 WHERE county = "changhua"
How many yards for the player with tfl-yds of 2.5-4?
SELECT no_yds FROM table_18064020_21 WHERE tfl_yds = "2.5-4"
Which circuit did Guy Edwards win?
SELECT circuit FROM table_name_11 WHERE winning_driver = "guy edwards"
Find the first and last name of all the students of age 18 who have vice president votes.
SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18
What is the total number of establishments with the highest risk level?
SELECT COUNT(license_no) FROM establishment WHERE risk_level = 3
What is the average price for flights from Los Angeles to Chicago
SELECT avg ( price ) FROM Flight WHERE origin = "Los Angeles" AND destination = "Chicago"
What is the nationality of school/club team of barton cc (ks)?
SELECT nationality FROM table_name_65 WHERE school_club_team = "barton cc (ks)"
What is the 1st leg in the match where Remo (PA) is team 1?
SELECT 1 AS st_leg FROM table_name_26 WHERE team_1 = "remo (pa)"
Find the number of distinct type of pets.
SELECT COUNT(DISTINCT pettype) FROM pets
What is the name of the team that has 1,317 attempts?
SELECT team FROM table_name_8 WHERE attempts = "1,317"
Which region had the date of November 18, 2002?
SELECT region FROM table_name_41 WHERE date = "november 18, 2002"
List down the record ID of records released between 2000 to 2003.
SELECT T.id FROM game_platform AS T WHERE T.release_year BETWEEN 2000 AND 2003
How many clients with the last name Alvarado are from Maryland?
SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T1.state_abbrev = T3.StateCode WHERE T2.last = 'Alvarado' AND T2.state = 'MD'
How many appointments are there?
SELECT COUNT(*) FROM appointment
What are the names of the players?
SELECT player_name from player
What are the countries that have at least two perpetrators?
SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2;
Can you show me the years of those movies as well?
SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3
What is the division in the season with 13 tms and pos smaller than 8?
SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8
What is Guard Kerri Shields Hometown?
SELECT hometown FROM table_name_94 WHERE position = "guard" AND name = "kerri shields"
What is the headquarter of the company with the largest sales?
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What is Away Team, when Ground is Colonial Stadium?
SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium"
Count the number of characteristics of the product named 'laurel'.
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"
What is the most common device model among female users between the ages 27 to 28?
SELECT T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F27-28' AND T1.gender = 'F' ORDER BY T2.device_id DESC LIMIT 1
when was the site listed when the county is cochise?
SELECT listed FROM table_name_14 WHERE county = "cochise"
What is the type of the RCA RW-2110, which has 2 MB of storage and a v.90 modem?
SELECT type FROM table_name_88 WHERE modem = "v.90" AND storage = "2 mb" AND brand = "rca" AND model = "rw-2110"
Calculate how many percent of customers were located in India.
SELECT CAST(SUM(IIF(T1.country = 'India', 1, 0)) AS REAL) * 100 / COUNT(T4.customer_id) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id INNER JOIN customer AS T4 ON T3.address_id = T4.address_id
How much Drawn has Points 1 of 51, and a Lost larger than 5?
SELECT COUNT(drawn) FROM table_name_5 WHERE points_1 = 51 AND lost > 5
Name the saka era for sign of zodiac being pisces
SELECT saka_era FROM table_169955_1 WHERE sign_of_zodiac = "Pisces"
Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.
SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate
How many points did Stuart have when he had less than 1 touchdown?
SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1
How many students are from each city, and which cities have more than one cities?
SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1
What was the total number of games played by se freising when their points were larger than 13?
SELECT COUNT(played) FROM table_name_61 WHERE name = "se freising" AND points > 13
Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0
Game site of kingdome, and a Result of w 24-6 has what record?
SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-6"
How about the total number of dorms?
SELECT count ( * ) FROM dorm
What is the maintenance contract id and supplier company id for asset id 2?
SELECT maintenance_contract_id,supplier_company_id from assets where asset_id = 2
What rank was the country with no bronze but at least 1 silver medals?
SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1
How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?
SELECT SUM(sr) FROM table_name_35 WHERE runs_scored = 161 AND average > 26.83
What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?
SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'
Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed"
What score did Jack Nicklaus have when he placed t6?
SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus"
Please list the names of all the Olympic competitors from Finland.
SELECT T3.full_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland'
Did he win or lose rof 32: respect?
SELECT res FROM table_name_47 WHERE event = "rof 32: respect"
Among all employees, who have job level greater than 200. State the employee name and job description.
SELECT T1.fname, T1.lname, T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl > 200
What group has 1200 m as the distance?
SELECT group FROM table_name_82 WHERE distance = "1200 m"
What episode did actor Daniel Macpherson's character have the rank of Detective Senior Constable
SELECT episodes FROM table_name_46 WHERE rank = "detective senior constable" AND actor_actress = "daniel macpherson"
What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?
SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'
What was the average attendance for games with a loss of papelbon (0–1)?
SELECT AVG(attendance) FROM table_name_66 WHERE loss = "papelbon (0–1)"
How many video games exist?
SELECT count(*) FROM Video_games
What day did they play in week 6?
SELECT date FROM table_name_36 WHERE week = 6
What team was the host on september 11?
SELECT host_team FROM table_name_37 WHERE date = "september 11"
What was the date of appointment for incoming manager Roy Hodgson and the team is Liverpool?
SELECT date_of_appointment FROM table_24172157_3 WHERE team = "Liverpool" AND incoming_manager = "Roy Hodgson"
What is the attribute of the business with highest star rating?
SELECT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id ORDER BY T1.stars DESC LIMIT 1
what's the individual winners with nation being australia
SELECT individual_winners FROM table_1458666_4 WHERE nation = "Australia"
Count the number of entrepreneurs.
SELECT count(*) FROM entrepreneur
Count how many appointments have been made in total.
SELECT count(*) FROM appointment
And what about their age?
SELECT lname , age FROM Student WHERE StuID IN ( SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat" )
How many different scores did Team Europe get when Mika Koivuniemi played for them?
SELECT COUNT(score) FROM table_19072602_1 WHERE team_europe = "Mika Koivuniemi"
Which cities have exactly 4 parks?
SELECT city FROM park GROUP BY city HAVING count ( * ) = 4
how many parks are name beltzville state park?
SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = "beltzville state park"
What is the average round for the record of 1-1?
SELECT AVG(round) FROM table_name_25 WHERE record = "1-1"
What was the record on February 2?
SELECT record FROM table_name_42 WHERE date = "february 2"
What type of surface was used for the game played on September 20, 1993?
SELECT surface FROM table_name_93 WHERE date = "september 20, 1993"
What day did the team play week 13?
SELECT date FROM table_name_87 WHERE week = 13
What is the most amount of goals any of the players had?
SELECT MAX(goals) FROM table_23963781_3
What was the crowd when the VFL played Windy Hill?
SELECT SUM(crowd) FROM table_name_49 WHERE venue = "windy hill"
What numbered game did they play on april 5?
SELECT MAX(game) FROM table_27755603_11 WHERE date = "April 5"
Which year had playoffs of champion?
SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion"
What is the latest Year, when the Venue is Lübker Golf Resort?
SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort"
Can you list all of the staff first names please?
SELECT first_name FROM Staff
WHich Speed has a Rank of 2?
SELECT speed FROM table_name_59 WHERE rank = 2
The Europe listing of 117 0 (8) belongs to what league?
SELECT league FROM table_name_5 WHERE europe = "117 0 (8)"
Where was the game played when the final score was 35-62?
SELECT stadium FROM table_name_71 WHERE final_score = "35-62"
What was the length of the game where the Baltimore Colts were at home?
SELECT length_of_game FROM table_name_95 WHERE home_team = "baltimore colts"
Which Team has Podiums of 0, and a Position of nc†?
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†"
Who has got the most number of "funny" type of compliments? Give the user ID.
SELECT user_id FROM Users_Compliments WHERE compliment_id IN ( SELECT compliment_id FROM Compliments WHERE compliment_type LIKE 'funny' )