sentence
stringlengths
3
347
sql
stringlengths
18
804
What is the author id?
SELECT T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT ( * ) DESC LIMIT 1
Which college's enrollment is less than 1,000?
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000
What Type of game has a Results¹ of 10:1?
SELECT type_of_game FROM table_name_33 WHERE results¹ = "10:1"
what opponent has the record of 78-63?
SELECT opponent FROM table_name_25 WHERE record = "78-63"
How many episodes have a segment d that is goalie masks (part 2)?
SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = "goalie masks (part 2)"
What are the names and descriptions of the all courses under the "Computer Science" subject?
SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"
which product coloured the highest pages in a minute?
SELECT product,pages_per_minute_color FROM product order by pages_per_minute_color desc limit 1
What Secretary has a Social AO of lieke de boer?
SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer"
What manufacturers on the list are located in Austin?
SELECT Name FROM manufacturers where Headquarter = 'Austin'
What is the total grid of the team with a time/retired of +7.346?
SELECT COUNT(grid) FROM table_name_53 WHERE time_retired = "+7.346"
List out the name and indicator code of high income: nonOECD countries
SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'High income: nonOECD'
What place is the United States in that has a score of 68-73-68=209?
SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?
SELECT 2007 FROM table_name_53 WHERE 2008 = "1r" AND tournament = "wimbledon"
What is the series number for season episode 24?
SELECT MIN(series_number) FROM table_13505192_3 WHERE season_number = 24
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?
SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd"
How many incumbents are in district la-1?
SELECT COUNT(incumbent) FROM table_28188239_1 WHERE district = "LA-1"
Who won the gold when Jules van Dyk Belgium won bronze?
SELECT gold FROM table_name_13 WHERE bronze = "jules van dyk belgium"
What is the county of the bridge in Boulder?
SELECT county FROM table_name_62 WHERE location = "boulder"
What's the part 3 of the verb whose class is 4?
SELECT part_3 FROM table_1745843_6 WHERE class = "4"
Which is the origin country of the $44274.40748 car?
SELECT T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.price = 44274.40748
What are the top 5 installed free apps?
SELECT App FROM playstore WHERE Price = 0 ORDER BY CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER) DESC LIMIT 5
Show all the planned delivery dates and actual delivery dates of bookings.
SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS
Find the different white color grapes that produced wines with scores higher than 90.
SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" AND T2.score > 90
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'
Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
What are the first names and office of the professors who are in the history department and have a Ph.D?
SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'
When toronto is the hometown how many height measurements are there?
SELECT COUNT(height) FROM table_18618707_1 WHERE hometown = "Toronto"
Who was the opponent when the record was 11-6-2?
SELECT opponent FROM table_name_25 WHERE record = "11-6-2"
What are the total population of the districts whose area is larger than the average city area?
SELECT sum ( city_population ) FROM district WHERE city_area > ( SELECT avg ( city_area ) FROM district )
What was the result of game 1?
SELECT result FROM table_name_26 WHERE game = "game 1"
What was the passenger fare for Lansing, when the passenger fare for Kalamazoo was $599.39?
SELECT lansing__lan_ FROM table_name_60 WHERE kalamazoo__azo_ = "$599.39"
What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?
SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181
How many donors have endowment for school named "Glenn"?
SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = "Glenn"
When the home team north melbourne was playing what did they score?
SELECT home_team AS score FROM table_name_78 WHERE home_team = "north melbourne"
What is the power when the displacement is 182cid (2,988cc) and the notes are eu spec?
SELECT power FROM table_name_43 WHERE displacement = "182cid (2,988cc)" AND notes = "eu spec"
What is the production cost when the producer is raintree pictures?
SELECT production_cost FROM table_name_63 WHERE producer = "raintree pictures"
What is Round when Year is 1987?
SELECT round FROM table_name_92 WHERE year = 1987
Which rank is the lowest with 37 games and more than 613 points?
SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613
How much money on average does Lucas Wyldbore spend on book orders?
SELECT SUM(T1.price) / COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore'
How many Gold for the Nation in Rank 15 with 0 Silver?
SELECT MAX(gold) FROM table_name_34 WHERE rank = "15" AND silver > 0
What other classes is this student taking?
select distinct course_name from Student_Course_Enrolment AS T1 JOIN Courses AS T2 ON T2.course_id = T1.course_id WHERE student_id = '15' and course_name ! = 'Chinese Painting'
what is the earliest founded when the home city is mayagüez?
SELECT MIN(founded) FROM table_name_51 WHERE home_city = "mayagüez"
What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?
SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5
What are the websites of schools that were founded in 1872?
SELECT website FROM table_name_11 WHERE founded = 1872
What are the names of the top 5 recipes that are best for wound healing?
SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 5
In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion?
SELECT T3.ward_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Ward AS T3 ON T3.ward_no = T2.ward_no WHERE T1.primary_description = 'INTIMIDATION' AND T1.secondary_description = 'EXTORTION' AND T3.Population > 55000 GROUP BY T3.ward_no ORDER BY COUNT(T3.ward_no) DESC LIMIT 1
What is the prevalence percentage of condition no. 64859006?
SELECT DISTINCT T1."PREVALENCE PERCENTAGE" FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) WHERE T2.code = '64859006'
Which county is El Cerrito from?
SELECT county FROM geographic WHERE city = 'el cerrito'
What are the maximum and minimum share of performances whose type is not "Live final".
SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> "Live final"
What is the name of the school with the highest number of first-time, full-time, degree-seeking female students in the cohort being tracked, minus any exclusions who were seeking another type of degree or certificate at a 4-year institution?
SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.gender = 'F' AND T2.cohort = '4y other' ORDER BY T2.grad_cohort DESC LIMIT 1
Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.
SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
Which classrooms are used by grade 4?
SELECT DISTINCT classroom FROM list WHERE grade = 4
What is cork's rank?
SELECT rank FROM table_name_4 WHERE county = "cork"
What are the first names of every student who has a cat or dog as a pet?
SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
what is the place when the score is 68-67-73-68=276?
SELECT place FROM table_name_20 WHERE score = 68 - 67 - 73 - 68 = 276
How many people wrote the episode that had 6.34 million viewers?
SELECT COUNT(written_by) FROM table_17641206_2 WHERE viewership = "6.34 million"
What instruments does the the song "Le Pop" use?
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What is the maximum and minimum weight of all players?
SELECT max(weight) , min(weight) FROM Player
Alex Winckler wrote the film, who was the director?
SELECT director_s_ FROM table_name_35 WHERE writer_s_ = "alex winckler"
Which cities have a branch?
SELECT distinct city FROM branch
Show the date and venue of each workshop in ascending alphabetical order of the venue.
SELECT Date , Venue FROM workshop ORDER BY Venue
What is the score on 23 November 1983 with exeter city as the away team?
SELECT score FROM table_name_31 WHERE date = "23 november 1983" AND away_team = "exeter city"
What is the Player with Versus with australia?
SELECT player FROM table_name_34 WHERE versus = "australia"
How many total players are there?
SELECT count ( * ) FROM player
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?
SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–2"
What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?
SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24
Count the number of films.
SELECT count(*) FROM film
What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748
What is the sum of the largest purse?
SELECT MAX(purse__) AS $__ FROM table_11622392_1
Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
Which Economic Class has a Barangay of imelda bliss village?
SELECT economic_class FROM table_name_77 WHERE barangay = "imelda bliss village"
It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the total number of total apps?
SELECT COUNT(total_apps) FROM table_name_6 WHERE fa_cup_goals < 4 AND fa_cup_apps > 7
Which Type has a Builder of avonside engine company, and a Number of 9?
SELECT type FROM table_name_55 WHERE builder = "avonside engine company" AND number = 9
How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?
SELECT bleeding_time FROM table_1555308_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Unaffected"
How many years have an Award of venice film festival, and a Title of lust, caution?
SELECT COUNT(year) FROM table_name_73 WHERE award = "venice film festival" AND title = "lust, caution"
During what race did Mike Hawthorn have the Fastest Lap and Peter Collins win?
SELECT race FROM table_name_51 WHERE fastest_lap = "mike hawthorn" AND winning_driver = "peter collins"
What PBA team is the player from Ateneo college with a pick number smaller than 15 from?
SELECT pba_team FROM table_name_65 WHERE pick < 15 AND college = "ateneo"
Show all student IDs who have at least two allergies.
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2
What is the overall number for a kicker with a pick of less than 6?
SELECT COUNT(overall) FROM table_name_84 WHERE position = "kicker" AND pick__number < 6
How many students have a major of 600?
SELECT COUNT ( * ) FROM Student WHERE Major = 600
What are the usernames and passwords of users that have the most common role?
SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Tell me the vehicle id and staff id for all lesson id's...
SELECT T1.vehicle_id , T2.staff_id FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id
How many people won in No. 12
SELECT COUNT(race_winner) FROM table_15187794_1 WHERE no = 12
What was the series of the episode directed by Abe Levitow released on 1959-06-27?
SELECT series FROM table_name_63 WHERE director = "abe levitow" AND release_date = "1959-06-27"
What are the titles of the films with those IDs?
SELECT Title from film WHERE film_ID IN ( SELECT film_ID FROM film WHERE Film_ID NOT IN ( SELECT Film_ID FROM film_market_estimation ) )
list the countries with mountains with height less than 5200
SELECT Country FROM mountain WHERE Height < 5200
how much is Creative Labs revenue?
SELECT Revenue FROM manufacturers WHERE Name = "Creative Labs"
What is the Freq currently of the 4GG Callsign?
SELECT freq_currently FROM table_name_7 WHERE callsign = "4gg"
What car make was sponsored by Aflac?
SELECT make FROM table_27940569_1 WHERE sponsor = "Aflac"
Who played in the semi finals matches at the Buick WCT finals?
SELECT semifinal_matches FROM table_2413292_1 WHERE commercial_name = "Buick WCT Finals"
In which district is the first elected 2000?
SELECT district FROM table_1805191_10 WHERE first_elected = 2000
What is the primary conference of the school that has the lowest acc percent score in the competition?
SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1
In how many games were the high rebounds made by Derrick Favors (8)?
SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)"
Find the names and phone numbers of customers living in California state.
SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto
SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = "Jimm Aalto Nina Sarnesto"
Among all the male officers, what is the percentage of them are White?
SELECT CAST(SUM(IIF(race = 'W', 1, 0)) AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M'
what is the minimum points with highest position being 1
SELECT MIN(points) FROM table_13789248_2 WHERE highest_position = 1
What is the ranking for the United States when the money is $200?
SELECT place FROM table_name_52 WHERE country = "united states" AND money___$__ = "200"
In what Year is the length of the Song 7:42?
SELECT AVG(year) FROM table_name_40 WHERE length = "7:42"
What cities do students live in?
SELECT DISTINCT city_code FROM Student