Question: Which titles have the content "love" but the category is art produced between 2018 and 2019.

SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE (T2.created_at LIKE '2018-%' AND T1.category = 'arts' AND T2.content LIKE '%love%') OR (T2.created_at LIKE '2019-%' AND T1.category = 'arts' AND T2.content LIKE '%love%')

Which titles have the content " love " but the category is art produced between 2018 and 2019 .

O B-COLUMN O O B-COLUMN O B-VALUE O O O B-COLUMN B-TABLE B-VALUE O O B-VALUE O B-VALUE O


Question: Which seasonal discount had the highest discount percentage?

SELECT Description FROM SpecialOffer WHERE Type = 'Seasonal Discount' ORDER BY DiscountPct DESC LIMIT 1

Which seasonal discount had the highest discount percentage ?


Question: List the names of countries that do not have any official language.

SELECT name FROM countries WHERE id NOT IN (SELECT country_id FROM official_languages)

List the names of countries that do not have any official language .

O O B-COLUMN O B-TABLE O O O O O B-TABLE I-TABLE O


Question: From race no. 50 to 100, how many finishers have been disqualified?

SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50

From race no . 50 to 100 , how many finishers have been disqualified ?

O B-COLUMN O O B-VALUE O B-VALUE O O O O O O O O


Question: How many events does the device "4069764298338760000" have?

SELECT COUNT(event_id) FROM events WHERE device_id = 4069764298338760000

How many events does the device " 4069764298338760000 " have ?

O O B-TABLE O O B-COLUMN O B-VALUE O O O


Question: In Alaska with school count of 1 from year 2011 to 2013, how many of the students are white?

SELECT COUNT(T2.race) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.schools_count = 1 AND T2.year BETWEEN 2011 AND 2013 AND T2.race = 'W' AND T1.state = 'Alaska'

In Alaska with school count of 1 from year 2011 to 2013 , how many of the students are white ?

O B-VALUE O B-COLUMN I-COLUMN O B-VALUE O B-COLUMN B-VALUE O B-VALUE O O O O O O O O O


Question: What are the titles of courses that are offered in more than one department?

SELECT title FROM course GROUP BY title HAVING count(*)  >  1

What are the titles of courses that are offered in more than one department ?

O O O B-COLUMN O B-TABLE O O O O O O O O O


Question: Show me the season page of year when the race No. 901 took place.

SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901

Show me the season page of year when the race No . 901 took place .

O O O B-TABLE O O B-COLUMN O O B-TABLE O O B-VALUE O O O


Question: Calculate the ratio of votes in 2010 and 2011.

SELECT CAST(SUM(IIF(STRFTIME('%Y', CreationDate) = '2010', 1, 0)) AS REAL) / SUM(IIF(STRFTIME('%Y', CreationDate) = '2011', 1, 0)) FROM votes

Calculate the ratio of votes in 2010 and 2011 .

O O B-COLUMN O B-TABLE O B-VALUE O B-VALUE O


Question: Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.

SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  "Simon Woodroffe" OR T1.Investor  =  "Peter Jones"

Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones .

O O B-COLUMN I-COLUMN I-COLUMN O B-TABLE O O O O B-COLUMN B-COLUMN I-COLUMN O B-COLUMN I-COLUMN O


Question: List the ids of the problems from the product "voluptatem" that are reported after 1995?

SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"

List the ids of the problems from the product " voluptatem " that are reported after 1995 ?

O O O O O B-TABLE O O B-TABLE O B-COLUMN O O B-COLUMN I-COLUMN O B-COLUMN O


Question: Show the residences that have at least two players.

SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2

Show the residences that have at least two players .


Question: What is the route that has the longest duration? Indicate the city of where the stations are located.

SELECT T1.start_station_name, T1.end_station_name, T2.city FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.duration = ( SELECT MAX(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name )

What is the route that has the longest duration ? Indicate the city of where the stations are located .

O O O O O O O O B-COLUMN O O O B-COLUMN O O O B-TABLE B-COLUMN O O


Question: Show all distinct publishers for books.

SELECT DISTINCT publisher FROM book_club

Show all distinct publishers for books .


Question: How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list.

SELECT T1.list_movie_number, T2.user_has_payment_method FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id ORDER BY T1.list_movie_number DESC LIMIT 1

How many movies were added to the list with the most number of movies ? Indicate whether the user was a paying subscriber or not when he created the list .

O O O O O O O B-TABLE O O O O O O O O O O O O O O O O O O O O O B-COLUMN O


Question: What are the names and location of the shops in ascending alphabetical order of name.

SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC

What are the names and location of the shops in ascending alphabetical order of name .

O O O O O B-COLUMN O O B-TABLE O O O O B-COLUMN I-COLUMN O


Question: What is the product complained by Alexander Bronx Lewis?

SELECT DISTINCT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Alexander' AND T1.middle = 'Bronx' AND T1.last = 'Lewis'

What is the product complained by Alexander Bronx Lewis ?

O O O B-COLUMN O O B-VALUE B-VALUE B-VALUE O


Question: List all ID and district for clients that can only have the right to issue permanent orders or apply for loans.

SELECT T3.client_id, T2.district_id, T2.A2 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id WHERE T3.type = 'OWNER'

List all ID and district for clients that can only have the right to issue permanent orders or apply for loans .

O O O O B-TABLE O B-COLUMN O O O O O O O O O O O O O O O


Question: What is the total price including optional support received by the teacher who posted the essay titled "Recording Rockin' Readers"?

SELECT SUM(T1.total_price_including_optional_support) FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title = 'Recording Rockin'' Readers'

What is the total price including optional support received by the teacher who posted the essay titled " Recording Rockin ' Readers " ?

O O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN B-COLUMN O O O O O O B-TABLE B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE O O


Question: What is the type with the fewest games?

SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1

What is the type with the fewest games ?


Question: Please show the date of ceremony of the volumes that last more than 2 weeks on top.

SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2

Please show the date of ceremony of the volumes that last more than 2 weeks on top .

O O O B-COLUMN I-COLUMN I-COLUMN O O B-COLUMN O O O O B-VALUE B-COLUMN I-COLUMN I-COLUMN O


Question: How many distinct movie theaters are there?

SELECT count(DISTINCT name) FROM movietheaters

How many distinct movie theaters are there ?


Question: List the names of all left-footed players who have overall rating between 85 and 90.

SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  "left" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90

List the names of all left - footed players who have overall rating between 85 and 90 .

O O O O O B-COLUMN O O B-TABLE O O B-COLUMN I-COLUMN O B-VALUE O B-VALUE O


Question: What is the brand and model of truck used in shipment id 1055?

SELECT T1.make, T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1055'

What is the brand and model of truck used in shipment i d 1055 ?

O O O O O B-COLUMN O B-TABLE O O B-COLUMN I-COLUMN I-COLUMN B-VALUE O


Question: What is the size of the smallest part in a jumbo case container?

SELECT MIN(p_size) FROM part WHERE p_container = 'JUMBO CASE'

What is the size of the smallest part in a jumbo case container ?

O O O B-COLUMN O O O B-TABLE O O B-VALUE I-VALUE B-COLUMN O


Question: List the names of patients who have made appointments.

SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn

List the names of patients who have made appointments .


Question: What are the different police forces of counties that are not located in the East?

SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != "East"

What are the different police forces of counties that are not located in the East ?

O O O O B-COLUMN I-COLUMN O O O O O B-COLUMN I-COLUMN O B-COLUMN O


Question: List out the full name and URL link of ICCI?

SELECT FullName, HomePage FROM Conference WHERE ShortName = 'ICCI'

List out the full name and URL link of ICCI ?

O O O B-COLUMN I-COLUMN O O O O B-VALUE O


Question: For the episode who won the award held by Jupiter Award, describe award name, aired date and rating of that episode.

SELECT T1.award, T2.air_date, T2.rating FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.organization = 'Jupiter Award' AND T1.result = 'Winner';

For the episode who won the award held by Jupiter Award , describe award name , aired date and rating of that episode .

O O O O O O B-TABLE O O B-VALUE I-VALUE O O O O O B-COLUMN I-COLUMN O B-COLUMN O O B-TABLE O


Question: List the student's first and last name that got a C in the course named "Applied Deep Learning".

SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Applied Deep Learning ' AND T2.grade = 'C'

List the student 's first and last name that got a C in the course named " Applied Deep Learning " .

O O B-TABLE O O O O B-COLUMN O O O B-VALUE O O B-TABLE O O B-VALUE I-VALUE I-VALUE O O


Question: Provide the order comments for at least 5 orders made by customers in the furniture segment.

SELECT T1.o_comment FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'Furniture' LIMIT 5

Provide the order comments for at least 5 orders made by customers in the furniture segment .

O O O B-COLUMN O O O O B-TABLE O O B-TABLE O O B-VALUE B-COLUMN O


Question: Give the name of the movie that got the most "5" ratings.

SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5

Give the name of the movie that got the most " 5 " ratings .

O O O O O B-TABLE B-COLUMN O O O O B-VALUE O B-TABLE O


Question: Indicate the name of the parts without discount.

SELECT T3.p_name FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T2.l_discount = 0.0000

Indicate the name of the parts without discount .

B-TABLE O B-COLUMN O O B-TABLE O B-COLUMN O


Question: Describe name, birth country, role in episode and age in 2022 of the oldest crew member..

SELECT T1.name, T1.birth_place, T2.role, 2022 - CAST(SUBSTR(T1.birthdate, 1, 4) AS int) AS age FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.birthdate IS NOT NULL ORDER BY T1.birthdate LIMIT 1;

Describe name , birth country , role in episode and age in 2022 of the oldest crew member ..

O B-COLUMN O B-COLUMN O O B-COLUMN O O O O O B-VALUE O O O O O O


Question: What is the total number of pounds being transported for S K L Enterprises Inc?

SELECT SUM(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc'

What is the total number of pounds being transported for S K L Enterprises Inc ?

B-COLUMN O O O O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: How many of the complaints are longer than 15 minutes?

SELECT COUNT(ser_time) FROM callcenterlogs WHERE strftime('%M', ser_time) > '15'

How many of the complaints are longer than 15 minutes ?


Question: List the names of the directors whose films grossed over $100 million.

SELECT DISTINCT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name INNER JOIN movies_total_gross AS T3 ON T1.movie_title = T3.movie_title WHERE CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL) > 100000000

List the names of the directors whose films grossed over $ 100 million .

O O B-COLUMN O O B-TABLE O O O O B-VALUE O O O


Question: In which city is there a greater number of schools that have received donations of less than 10 dollars?

SELECT T2.school_city FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.dollar_amount = 'under_10' GROUP BY T2.school_city ORDER BY COUNT(T2.schoolid) DESC LIMIT 1

In which city is there a greater number of schools that have received donations of less than 10 dollars ?

O O O O O O O O O B-COLUMN O O B-COLUMN B-TABLE O O O O B-COLUMN O


Question: List 5 customers in the West region who had their item shipped 'Second Class.'

SELECT DISTINCT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' AND T1.`Ship Mode` = 'Second Class' LIMIT 5

List 5 customers in the West region who had their item shipped ' Second Class . '

O O B-COLUMN I-COLUMN O B-VALUE B-COLUMN O O O O B-COLUMN O B-VALUE I-VALUE O O


Question: Calculate the total dish count for menu with uuid of "510d47e4-2958-a3d9-e040-e00a18064a99" & "510d47e4-295a-a3d9-e040-e00a18064a99".

SELECT SUM(CASE WHEN T2.uuid = '510d47e4-2958-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) - SUM(CASE WHEN T2.uuid = '510d47e4-295a-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id

O O O B-COLUMN I-COLUMN O B-TABLE O B-COLUMN O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: What is the number of installments of the app with the highest total Sentiment polarity score?

SELECT T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Polarity) DESC LIMIT 1

What is the number of installments of the app with the highest total Sentiment polarity score ?

O O O O O B-COLUMN O O B-COLUMN O O O O B-COLUMN B-TABLE I-TABLE O


Question: On average how large is the population of the counties?

On average how large is the population of the counties ?


Question: What is the name of the oldest pilot?

SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1


Question: Give me the start station and end station for the trips with the three oldest id.

SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3

Give me the start station and end station for the trips with the three oldest i d.

O O O B-COLUMN I-COLUMN O B-COLUMN I-COLUMN O O B-TABLE O O O O B-COLUMN I-COLUMN


Question: Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.

SELECT dorm_name ,  gender FROM dorm WHERE student_capacity  >  300 OR student_capacity  <  100

Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100 .

O O B-COLUMN O B-COLUMN O O O B-TABLE O B-COLUMN O O O B-VALUE O O O B-VALUE O


Question: Give the event ID, location, and status of events conducted from November 2019 to March 2020.

SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31'

Give the event ID , location , and status of events conducted from November 2019 to March 2020 .

O O B-TABLE B-COLUMN O B-COLUMN O O B-COLUMN O O O O O O O O O O


Question: Among the low income countries, which country has the lowest fertility rate?

SELECT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' ORDER BY T2.Value LIMIT 1

Among the low income countries , which country has the lowest fertility rate ?

O O B-VALUE I-VALUE O O O B-TABLE O O O O O O


Question: For how many terms has current legislator Sherrod Brown served as a representative for district no.13?

SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown' AND T2.district = 13

For how many terms has current legislator Sherrod Brown served as a representative for district no.13 ?

O O O O O B-TABLE O B-VALUE I-VALUE O O O O O B-COLUMN O O


Question: How many men under the age of 23 have apps installed but are not active on their devices?

SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T1.gender = 'M' AND T3.is_active = 0 AND T1.age < 23

How many men under the age of 23 have apps installed but are not active on their devices ?

O O O B-COLUMN B-TABLE B-COLUMN O B-VALUE O O O O O O B-COLUMN O O B-COLUMN O


Question: Show the different nationalities and the number of journalists of each nationality.

SELECT Nationality ,  COUNT(*) FROM journalist GROUP BY Nationality

Show the different nationalities and the number of journalists of each nationality .


Question: 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 are the dates for the documents with both ' GV ' type and ' SF ' type expenses ?

O O O O O O B-TABLE B-TABLE O O B-VALUE O O O O B-VALUE O O O O


Question: Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.

SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID ORDER BY T3.Rank

Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot .

O O O O O O B-COLUMN I-COLUMN O O B-TABLE O O O O O O O O O B-COLUMN O O B-TABLE O


Question: How many bonds are created by bonding atoms with chlorine element?

SELECT COUNT(T1.bond_id) FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T2.element = 'cl'

How many bonds are created by bonding atoms with chlorine element ?

O O O O B-TABLE O B-COLUMN B-TABLE O O B-COLUMN O


Question: List roles that have more than one employee. List the role description and number of employees.

SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id)  >  1;

List roles that have more than one employee . List the role description and number of employees .

O B-TABLE O O O O O B-COLUMN O O O B-COLUMN B-COLUMN O O O B-TABLE O


Question: What business category is the Yelp business which got the most 5 star reviews in?

SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Reviews AS T4 ON T3.business_id = T4.business_id WHERE T4.review_stars = 5 GROUP BY T1.category_name ORDER BY COUNT(T1.category_name) DESC LIMIT 1

What business category is the Yelp business which got the most 5 star reviews in ?

O B-TABLE B-TABLE I-TABLE O O B-COLUMN O O O O B-VALUE O B-TABLE O O


Question: List all affiliations with ascending ordered number of papers.

SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id  =  T2.affiliation_id GROUP BY T1.affiliation_id ORDER BY count(*) DESC

List all affiliations with ascending ordered number of papers .


Question: Find the total number of instructors who teach a course in the Spring 2010 semester.

SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010

Find the total number of instructors who teach a course in the Spring 2010 semester .

B-COLUMN O O O O O O B-TABLE O O O O B-VALUE B-VALUE B-COLUMN O


Question: Return the age category for the user who made the earliest search.

SELECT T1.age_category_code FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id  =  T2.user_id ORDER BY T2.search_datetime LIMIT 1;

Return the age category for the user who made the earliest search .

O O B-COLUMN I-COLUMN O O B-TABLE O O O O B-TABLE O


Question: Write the full names of students who received funds on the date of 9/9/2019 and include the amount received.

SELECT DISTINCT T3.first_name, T3.last_name, T4.amount FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T3.member_id = T2.link_to_member INNER JOIN income AS T4 ON T4.link_to_member = T3.member_id WHERE T4.date_received = '2019-09-09'

Write the full names of students who received funds on the date of 9/9/2019 and include the amount received .

O O O O O O O B-COLUMN O O O O O O O B-TABLE O B-COLUMN O O


Question: Please list the IDs of the solutions that contain files within the top 3 followed repositories.

SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId ORDER BY T1.Forks DESC LIMIT 3

Please list the IDs of the solutions that contain files within the top 3 followed repositories .

O O O B-COLUMN O O B-TABLE O O O O O O O O O O


Question: Which customer has rented more movies, RUTH MARTINEZ or LINDA WILLIAMS?

SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T1.customer_id) AS num FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE (T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ') OR (T1.first_name = 'LINDA' AND T1.last_name = 'WILLIAMS') GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1

Which customer has rented more movies , RUTH MARTINEZ or LINDA WILLIAMS ?

O B-TABLE O B-TABLE O O O B-VALUE B-VALUE O B-VALUE B-VALUE O


Question: How many male students are enrolled at OCC?

SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN male AS T2 ON T1.name = T2.name WHERE T1.school = 'occ'

How many male students are enrolled at OCC ?


Question: What is the average teaching ability of the most popular professors?

SELECT CAST(SUM(teachingability) AS REAL) / COUNT(prof_id) FROM prof WHERE popularity = ( SELECT MAX(popularity) FROM prof )

What is the average teaching ability of the most popular professors ?

O O O O B-COLUMN I-COLUMN B-TABLE O O B-COLUMN O O


Question: Show the types of questions that have at least three questions.

SELECT Type_of_Question_Code FROM Questions GROUP BY Type_of_Question_Code HAVING count(*)  >=  3

Show the types of questions that have at least three questions .

O O B-COLUMN I-COLUMN I-COLUMN O O O O O B-TABLE O


Question: For each Orange county campus, report the number of degrees granted after 2000.

SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T1.county  =  "Orange" AND T2.year  >=  2000 GROUP BY T1.campus

For each Orange county campus , report the number of degrees granted after 2000 .

O O B-COLUMN B-COLUMN B-COLUMN O O O O O B-COLUMN O O B-VALUE O


Question: Find the distinct ids of all paintings that are older than some painting at location gallery 240.

SELECT paintingID FROM paintings WHERE YEAR  <  (SELECT max(YEAR) FROM paintings WHERE LOCATION  =  "Gallery 240")

Find the distinct ids of all paintings that are older than some painting at location gallery 240 .

O O O O O O B-TABLE O O O O O B-COLUMN O B-COLUMN B-COLUMN I-COLUMN O


Question: Find the number of students in total.


Question: Who is the customer with the largest payment for rental films?

SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T2.amount) AS num FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1

Who is the customer with the largest payment for rental films ?

O O O B-TABLE O O B-COLUMN B-COLUMN O O O O


Question: What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?

SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"

What are the ids of the problems that are from the product " voluptatem " and are reported after 1995 ?

O O O O O O B-TABLE O O O O B-TABLE O B-COLUMN O O B-COLUMN I-COLUMN O B-COLUMN O


Question: What are all the distinct premise types?

SELECT DISTINCT premises_type FROM premises

What are all the distinct premise types ?


Question: How many Planes orders were there?

SELECT COUNT(T1.productCode) FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode WHERE T2.productLine = 'Planes'


Question: What is the full name of the oldest legislator?

SELECT first_name, last_name FROM historical ORDER BY birthday_bio LIMIT 1

What is the full name of the oldest legislator ?


Question: Among the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.

SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Male' AND T1.weight_kg * 100 > ( SELECT AVG(weight_kg) FROM superhero ) * 79

Among the male superheroes , list the super hero names of superheroes with weight greater than the 79 % average weight of all superheroes .

O O B-VALUE O O O O B-TABLE I-TABLE B-COLUMN O O O O B-COLUMN O O B-VALUE O O B-COLUMN O O O O


Question: What is the risk level of the establishment that Bob Benson inspected?

SELECT DISTINCT T3.risk_level FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Bob' AND T1.last_name = 'Benson'

What is the risk level of the establishment that Bob Benson inspected ?

O O O B-COLUMN I-COLUMN O O B-TABLE O B-VALUE B-VALUE B-TABLE O


Question: What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?

SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested  <  120000

What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000 ?

O O O B-COLUMN O O O O O O O O O O B-VALUE O B-TABLE O B-COLUMN O O B-VALUE O


Question: How many disabled students are male?

SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name


Question: How many types of restaurants are there in the Yosemite and Mono Lake area?

SELECT COUNT(T2.food_type) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'yosemite and mono lake area'

How many types of restaurants are there in the Yosemite and Mono Lake area ?

O O O O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: What are the names of instructors who didn't teach?

SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)

What are the names of instructors who did n't teach ?

O O O B-COLUMN O B-TABLE O B-COLUMN O B-TABLE O


Question: What is the category that the most app users belong to?

SELECT T.category FROM ( SELECT T1.category, COUNT(T2.app_id) AS num FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id GROUP BY T1.label_id ) AS T ORDER BY T.num DESC LIMIT 1

What is the category that the most app users belong to ?


Question: On 1887-07-21, what was the event that lead to the creation of menu id 21380?

SELECT event FROM Menu WHERE date = '1887-07-21' AND id = 21380

On 1887 - 07 - 21 , what was the event that lead to the creation of menu i d 21380 ?

O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O O O B-COLUMN O O O O O O B-TABLE B-COLUMN I-COLUMN B-VALUE O


Question: Calculate the run rate at the end of 17 overs of the match ID 335987 on 4/18/2008.

SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AND T2.Match_Date = '2008-04-18' GROUP BY T3.Over_Id HAVING COUNT(T1.Toss_Name = 'field') = 17

Calculate the run rate at the end of 17 overs of the match ID 335987 on 4/18/2008 .

O O O O B-VALUE O O O B-VALUE B-COLUMN O O B-TABLE B-COLUMN B-VALUE O O O


Question: What is the average age of the members of the club "Bootup Baltimore"?

SELECT avg(t3.age) 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  =  "Bootup Baltimore"

What is the average age of the members of the club " Bootup Baltimore " ?

O O O O B-COLUMN O O B-TABLE I-TABLE I-TABLE B-TABLE O B-COLUMN I-COLUMN O O


Question: What are the age categories for users whose description contains the string Mother?

SELECT T2.age_category_code FROM Ref_User_Categories AS T1 JOIN Users AS T2 ON T1.user_category_code  =  T2.user_category_code WHERE T1.User_category_description LIKE "%Mother";

What are the age categories for users whose description contains the string Mother ?

O O O B-COLUMN I-COLUMN O B-TABLE B-COLUMN I-COLUMN O O O B-COLUMN O


Question: Show the customers with total quantity of order bigger than 1.

SELECT T1.Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID  =  T2.Customer_ID GROUP BY T1.Name HAVING sum(T2.Quantity)  >  1

Show the customers with total quantity of order bigger than 1 .

O O B-TABLE O O B-COLUMN O O O O B-VALUE O


Question: How many watchers does the path "maff_se3ue7\US7.sln" have?

SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'maff_se3ue7US7.sln'

How many watchers does the path " maff_se3ue7\US7.sln " have ?

O O B-COLUMN O O B-COLUMN O B-VALUE O O O


Question: Which event has the highest budget amount?

SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id ORDER BY T1.amount DESC LIMIT 1

Which event has the highest budget amount ?


Question: Lists all parts supplied by Supplier#000000034.

SELECT T3.p_name FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T2.s_name = 'Supplier#000000034'

Lists all parts supplied by Supplier#000000034 .


Question: What is/are the ids of the tallest patient/s?

SELECT PATIENT FROM observations WHERE DESCRIPTION = 'Body Height' AND UNITS = 'cm' ORDER BY VALUE DESC LIMIT 1

What is / are the ids of the tallest patient / s ?


Question: List each patient's ID and blood glucose (GLU) index that were within normal range for patient's whose data was first recorded in 1991.

SELECT DISTINCT T1.ID, T2.GLU FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.`First Date`) = '1991' AND T2.GLU < 180

List each patient 's ID and blood glucose ( GLU ) index that were within normal range for patient 's whose data was first recorded in 1991 .

O O O O B-COLUMN O O O O B-COLUMN O O O O O O O O B-TABLE O O O O B-COLUMN I-COLUMN O B-VALUE O


Question: Give the biography of the actor who played "Michael Moscovitz".

SELECT T2.Biography FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Michael Moscovitz'

Give the biography of the actor who played " Michael Moscovitz " .

O O B-COLUMN O O B-TABLE O O O B-VALUE I-VALUE O O


Question: Give the ids of the three products purchased in the largest amounts.

SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3

Give the ids of the three products purchased in the largest amounts .


Question: Among the states that start with letter A and attained a national sector average of 16.5, give the number of degree-seeking students in the cohort of those students in 2012 .

SELECT SUM(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.state LIKE 'A%' AND T1.awards_per_natl_value = 16.5 AND T2.year = 2012

Among the states that start with letter A and attained a national sector average of 16.5 , give the number of degree - seeking students in the cohort of those students in 2012 .

O O B-COLUMN O O O O O O O B-VALUE O O O O B-VALUE O O O O O O O O O O O B-COLUMN O O O O B-VALUE O


Question: Give the title of the work that contains the character "Shylock".

SELECT DISTINCT T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Shylock'

Give the title of the work that contains the character " Shylock " .

O O B-COLUMN O O B-TABLE O O O B-TABLE O B-VALUE O O


Question: Give the number of Moroccan customers whose account is in debt.

SELECT COUNT(T1.c_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'MOROCCO' AND T1.c_acctbal < 0

Give the number of Moroccan customers whose account is in debt .


Question: Return the maximum enrollment across all schools.

Return the maximum enrollment across all schools .


Question: Please provide the type of resource that donation "b39547f29dfc25fb13c6e9e8d940dc43" contain.

SELECT DISTINCT T1.project_resource_type FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T3.donationid LIKE 'b39547f29dfc25fb13c6e9e8d940dc43'

Please provide the type of resource that donation " b39547f29dfc25fb13c6e9e8d940dc43 " contain .

O B-COLUMN O O O B-TABLE O B-TABLE O B-VALUE O O O


Question: What are the descriptions of the courses with name "database"?

SELECT course_description FROM COURSES WHERE course_name  =  "database"

What are the descriptions of the courses with name " database " ?

O O O B-COLUMN O O B-TABLE B-COLUMN I-COLUMN O B-COLUMN O O


Question: What is the display name of the user who is the owner of the most valuable post?

SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1

What is the display name of the user who is the owner of the most valuable post ?

O O O B-COLUMN I-COLUMN O O B-TABLE O O O B-COLUMN O O O O B-TABLE O


Question: What is the name of the most popular restaurant serving Asian foods in San Francisco?

SELECT label FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' )

What is the name of the most popular restaurant serving Asian foods in San Francisco ?

O O O O O O O O O O B-VALUE O O B-VALUE I-VALUE O


Question: Which state has most number of universities?

SELECT state FROM University GROUP BY state ORDER BY count(*) DESC LIMIT 1

Which state has most number of universities ?


Question: Find the first name of students living in city PHL whose age is between 20 and 25.

SELECT fname FROM student WHERE city_code  =  'PHL' AND age BETWEEN 20 AND 25

Find the first name of students living in city PHL whose age is between 20 and 25 .

O O O B-COLUMN O B-TABLE O O B-COLUMN B-VALUE O B-COLUMN O O B-VALUE O B-VALUE O


Question: How many more "discount" gas stations does the Czech Republic have compared to Slovakia?

SELECT SUM(IIF(Country = 'CZE', 1, 0)) - SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations WHERE Segment = 'Discount'

How many more " discount " gas stations does the Czech Republic have compared to Slovakia ?

O O O O B-COLUMN O B-TABLE I-TABLE O O B-VALUE O O O O O O


Question: What is the customer id with most number of cards, and how many does he have?

SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1

What is the customer i d with most number of cards , and how many does he have ?

O O O B-COLUMN I-COLUMN I-COLUMN O O O O O O O O O O O O O


Question: List the scenes and descriptions in Act 1 of " Pericles, Prince of Tyre".

SELECT T2.Scene, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Pericles, Prince of Tyre' AND T2.Act = 1

List the scenes and descriptions in Act 1 of " Pericles , Prince of Tyre " .

O O B-COLUMN O B-COLUMN O B-COLUMN B-VALUE O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: Among all customers handled by Innes E. del Castillo, how many have purchased Short-Sleeve Classic Jersey, L?

SELECT COUNT(T2.CustomerID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T3.FirstName = 'Innes' AND T3.LastName = 'del Castillo' AND T1.Name = 'Short-Sleeve Classic Jersey, L' AND T3.MiddleInitial = 'e'

Among all customers handled by Innes E. del Castillo , how many have purchased Short - Sleeve Classic Jersey , L ?

O O B-COLUMN O O B-VALUE B-VALUE B-VALUE I-VALUE O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: How many cities are in the Philippines?

SELECT COUNT(ID) FROM City WHERE Name = 'PHL'

How many cities are in the Philippines ?


Question: What are the characters of actors in descending order of age?

SELECT Character FROM actor ORDER BY age DESC

What are the characters of actors in descending order of age ?

O O O B-COLUMN O B-TABLE O O O O B-COLUMN O


Question: Among the users located in United Kingdom, how many users whose post have a total favorite amount of 4 or more?

SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4

Among the users located in United Kingdom , how many users whose post have a total favorite amount of 4 or more ?

O O O B-COLUMN I-COLUMN B-VALUE I-VALUE O O O B-TABLE O B-TABLE O O O B-COLUMN I-COLUMN O B-VALUE O O O


Question: How many suppliers for the part "hot spring dodger dim light" are in Vietnam?

SELECT COUNT(T3.s_name) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey INNER JOIN nation AS T4 ON T3.s_nationkey = T4.n_nationkey WHERE T1.p_name = 'hot spring dodger dim light' AND T4.n_name = 'VIETNAM'

How many suppliers for the part " hot spring dodger dim light " are in Vietnam ?

O O B-TABLE O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O O B-VALUE O


Question: Give me a list of all the last names of authors sorted in alphabetical order

SELECT lname FROM authors ORDER BY lname

O O O O O O O O B-COLUMN O B-TABLE O O O O


Question: What is the name and the position of the CBSA officer in the city of Cabo Rojo?

SELECT T1.CBSA_name, T1.CBSA_type FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'Cabo Rojo' GROUP BY T1.CBSA_name, T1.CBSA_type

What is the name and the position of the CBSA officer in the city of Cabo Rojo ?

O O O B-COLUMN O O O O O B-COLUMN O O O B-COLUMN O B-VALUE I-VALUE O


Question: How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'?

SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder'

How many respondents of the mental health survey were diagnosed with ' Substance Use Disorder ' ?

O O O O O O O O B-TABLE O O O B-VALUE I-VALUE I-VALUE O O


Question: List every individual's first name, middle name and last name in alphabetical order by last name.

SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name

List every individual 's first name , middle name and last name in alphabetical order by last name .

O O B-TABLE I-TABLE B-COLUMN I-COLUMN O O O O O O O O O O O O O


Question: What are the names of regions in ascending alphabetical order?

SELECT Name FROM region ORDER BY Name ASC

What are the names of regions in ascending alphabetical order ?


Question: What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?

SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)

What is the title and credits of the course that is taught in the largest classroom ( with the highest capacity ) ?

O O O B-COLUMN O B-COLUMN O O B-TABLE O O O O O O B-TABLE O O O O B-COLUMN O O


Question: Find the first names of students with age above 22.

SELECT Fname FROM STUDENT WHERE Age  >  22

Find the first names of students with age above 22 .

O O O B-COLUMN O B-TABLE O B-COLUMN O B-VALUE O


Question: How many arrests have been made due to forcible entry burglary that took place in a day care center?

SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.location_description = 'DAY CARE CENTER' AND T1.secondary_description = 'FORCIBLE ENTRY' AND T1.primary_description = 'BURGLARY'

How many arrests have been made due to forcible entry burglary that took place in a day care center ?

O O B-COLUMN O O O O O B-VALUE I-VALUE B-VALUE O O O O O B-VALUE B-TABLE B-VALUE O


Question: What are the names of pilots who are younger than 35 and have a plane named Piper Cub?

SELECT pilot_name FROM PilotSkills WHERE age  <  35 AND plane_name  =  'Piper Cub'

What are the names of pilots who are younger than 35 and have a plane named Piper Cub ?

O O O O O B-COLUMN O B-COLUMN O O B-VALUE O O O B-COLUMN I-COLUMN B-VALUE I-VALUE O


Question: What are the names of the storms that affected both the regions of Afghanistan and Albania?

SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'

What are the names of the storms that affected both the regions of Afghanistan and Albania ?

O O O B-COLUMN O O B-TABLE O B-TABLE O O B-TABLE O B-VALUE O B-VALUE O


Question: On how many days with the max temperature over 90 did the sale of item no.5 in store no.3 exceed 100?

SELECT SUM(CASE WHEN units > 100 THEN 1 ELSE 0 END) AS count FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5 AND tmax > 90

On how many days with the max temperature over 90 did the sale of item no.5 in store no.3 exceed 100 ?

O O O O O B-TABLE B-COLUMN O O B-VALUE O O O O B-COLUMN O O B-COLUMN O O B-VALUE O


Question: List all the cagetories for all the podcasts with "jessica" in the title.

SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title LIKE '%jessica%' )

List all the cagetories for all the podcasts with " jessica " in the title .

O O O B-TABLE O O O B-TABLE O O B-VALUE O O O B-COLUMN O


Question: What award did the character Homer simpson 20 achieve in 2009?

SELECT DISTINCT T1.award FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009 AND T2.character = 'Homer Simpson';

What award did the character Homer simpson 20 achieve in 2009 ?

O B-TABLE B-COLUMN O B-COLUMN B-VALUE I-VALUE O O O B-VALUE O


Question: Which authors have first name "Amal"? List their last names.

SELECT lname FROM authors WHERE fname  =  "Amal"

Which authors have first name " Amal " ? List their last names .

O B-TABLE O O B-COLUMN O B-COLUMN O O O O O O O


Question: What is the highest total bilirubin level recorded? List out the patient details with ID, sex and birthday with that index.

SELECT T2.`T-BIL`, T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID ORDER BY T2.`T-BIL` DESC LIMIT 1

What is the highest total bilirubin level recorded ? List out the patient details with ID , sex and birthday with that index .

O O O O O O O O O O O O B-TABLE O O B-COLUMN O B-COLUMN O B-COLUMN O O O O


Question: What is the supply cost for the part "violet olive rose ivory sandy"?

SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_name = 'violet olive rose ivory sandy'

What is the supply cost for the part " violet olive rose ivory sandy " ?

O O O B-COLUMN I-COLUMN O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: In years 2011 to 2013, what is the total number of female students in university ID 40?

SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40

In years 2011 to 2013 , what is the total number of female students in university ID 40 ?

O B-COLUMN B-VALUE O B-VALUE O O O O O O O B-COLUMN B-COLUMN O B-COLUMN I-COLUMN B-VALUE O


Question: What is the percentage of posts whose owners had a reputation of over 1000 in 2011?

SELECT CAST(SUM(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011' AND T1.Reputation > 1000, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId

What is the percentage of posts whose owners had a reputation of over 1000 in 2011 ?

O O O O O B-TABLE O B-COLUMN O O B-COLUMN O O B-VALUE O B-VALUE O


Question: In which direction does the train with an ellipse-shape car run?

SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.shape = 'ellipse'

In which direction does the train with an ellipse - shape car run ?

O O B-COLUMN O O B-TABLE O O B-VALUE O B-COLUMN B-TABLE O O


Question: What are the inspection description and inspector's comments in the inspection ID 164795?

SELECT T1.Description, T2.inspector_comment FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = 44247

What are the inspection description and inspector 's comments in the inspection ID 164795 ?

O O O O B-COLUMN O B-COLUMN I-COLUMN I-COLUMN O O B-COLUMN I-COLUMN O O


Question: Which building has most faculty members?

SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1

Which building has most faculty members ?


Question: Give the average temperature of station no.20 on 2014/10/17.

SELECT tavg FROM weather WHERE `date` = '2014-10-17' AND station_nbr = 20

Give the average temperature of station no.20 on 2014/10/17 .


Question: How many international and domestic passengers are there in the airport London Heathrow?

SELECT International_Passengers ,  Domestic_Passengers FROM airport WHERE Airport_Name  =  "London Heathrow"

How many international and domestic passengers are there in the airport London Heathrow ?

O O B-COLUMN I-COLUMN B-COLUMN I-COLUMN O O O O B-TABLE B-COLUMN I-COLUMN O


Question: How many students enlisted in the fire-department?

SELECT COUNT(name) FROM enlist WHERE organ = 'fire_department'

How many students enlisted in the fire - department ?

O O O B-TABLE O O B-VALUE I-VALUE I-VALUE O


Question: What is the name of the product with the highest retail price?

SELECT p_name FROM part WHERE p_retailprice = ( SELECT MAX(p_retailprice) FROM part )

What is the name of the product with the highest retail price ?

O O O B-COLUMN O O O O O O B-COLUMN I-COLUMN O


Question: How heavy is Matthias Trattnig in kilograms?

SELECT T2.weight_in_kg FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.PlayerName = 'Pavel Patera'

How heavy is Matthias Trattnig in kilograms ?


Question: What is the total number of non-chartered schools in the county of Los Angeles with a percent (%) of eligible free meals for grades 1 through 12 that is less than 0.18%?

SELECT COUNT(T2.School) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.Charter = 0 AND CAST(T1.`Free Meal Count (K-12)` AS REAL) * 100 / T1.`Enrollment (K-12)` < 0.18

What is the total number of non - chartered schools in the county of Los Angeles with a percent ( % ) of eligible free meals for grades 1 through 12 that is less than 0.18 % ?

O O O O O O O O B-COLUMN B-COLUMN O O B-COLUMN O B-VALUE I-VALUE O O O O O O O O B-COLUMN I-COLUMN I-COLUMN O O O O O O O O B-VALUE O O


Question: How many female students are disabled?

SELECT COUNT(name) FROM disabled WHERE name NOT IN ( SELECT name FROM male )


Question: What are the names of all the aircrafts associated with London Gatwick airport?

SELECT T1.Aircraft 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 T3.Airport_Name  =  "London Gatwick"

What are the names of all the aircrafts associated with London Gatwick airport ?

O O O O O O O B-TABLE O O B-COLUMN I-COLUMN B-TABLE O


Question: For the client whose loan was approved first in 1993/7/5, what is the increase rate of his/her account balance from 1993/3/22 to 1998/12/27?

SELECT CAST((SUM(IIF(T3.date = '1998-12-27', T3.balance, 0)) - SUM(IIF(T3.date = '1993-03-22', T3.balance, 0))) AS REAL) * 100 / SUM(IIF(T3.date = '1993-03-22', T3.balance, 0)) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN trans AS T3 ON T3.account_id = T2.account_id WHERE T1.date = '1993-07-05'

For the client whose loan was approved first in 1993/7/5 , what is the increase rate of his / her account balance from 1993/3/22 to 1998/12/27 ?

O O O O B-TABLE O O O O B-VALUE O O O O O B-COLUMN O O O O B-TABLE B-COLUMN O B-VALUE O B-VALUE O


Question: How many games did team of the scoring champion win in 2001 NBA season?

SELECT T2.W FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T2.year = 2001 ORDER BY T1.o_fgm DESC LIMIT 1

How many games did team of the scoring champion win in 2001 NBA season ?

O O O O B-TABLE O O O O O O B-VALUE O O O


Question: In what year was the most degrees conferred?

SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1

In what year was the most degrees conferred ?


Question: What is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?

SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'

What is the mana cost of cards with a normal layout , a 2003 frame version , with a black border color , and available in paper and mtgo ?

O O O B-COLUMN I-COLUMN O B-TABLE O O B-VALUE B-COLUMN O O B-VALUE B-COLUMN I-COLUMN O O O B-VALUE B-COLUMN I-COLUMN O O B-COLUMN O B-VALUE O O O


Question: In which mailing street address can you find the school that has the lowest average score in reading? Also give the school's name.

SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1

In which mailing street address can you find the school that has the lowest average score in reading ? Also give the school 's name .

O O B-COLUMN I-COLUMN O O O O O B-COLUMN O O O O B-COLUMN B-COLUMN O O O O O O B-TABLE I-TABLE O O


Question: What are the names of wines made from red grapes and with prices above 50?

SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red" AND T2.price  >  50

What are the names of wines made from red grapes and with prices above 50 ?

O O O B-COLUMN O B-TABLE O O B-COLUMN B-COLUMN O O B-COLUMN O B-VALUE O


Question: What is the product type code with most number of products?

SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) DESC LIMIT 1

What is the product type code with most number of products ?

O O O B-COLUMN I-COLUMN I-COLUMN O O O O B-TABLE O


Question: What is the total number of episode with a rating below 7?

SELECT COUNT(episode_id) FROM Episode WHERE rating < 7;

What is the total number of episode with a rating below 7 ?

O O O O O O B-TABLE O O B-COLUMN O B-VALUE O


Question: What are the types of competition that have most 5 competitions for that type?

SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*)  <=  5

What are the types of competition that have most 5 competitions for that type ?

O O O O O B-TABLE O O O B-VALUE O O O O O


Question: How many institutes are private and not-for profit?

SELECT COUNT(*) FROM institution_details WHERE control = 'Private not-for-profit'

How many institutes are private and not - for profit ?

O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: What are the names of players that have run scored less than 3?

SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Batsman_Scored AS T3 ON T2.Match_ID = T3.Match_ID WHERE T3.Runs_Scored < 3 GROUP BY T1.Player_Name

What are the names of players that have run scored less than 3 ?

O O O O O B-TABLE B-TABLE O B-COLUMN I-COLUMN O O B-VALUE O


Question: Show student ids who are female and play football.

SELECT StuID FROM Student WHERE sex  =  'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname  =  "Football"

Show student ids who are female and play football .


Question: What is the id of the product that was ordered the most often?

SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1

What is the i d of the product that was ordered the most often ?

O O O O O O O B-COLUMN O O B-TABLE I-TABLE I-TABLE O O


Question: Find the physician who was trained in the most expensive procedure?

SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid  =  T2.physician JOIN procedures AS T3 ON T3.code  =  T2.treatment ORDER BY T3.cost DESC LIMIT 1

Find the physician who was trained in the most expensive procedure ?

O O B-COLUMN O O B-TABLE I-TABLE O B-COLUMN O B-TABLE O


Question: List the ship ID of shipments shipped to the most populated city.

SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.population DESC LIMIT 1

List the ship ID of shipments shipped to the most populated city .

O O B-COLUMN I-COLUMN O B-TABLE O O O O B-COLUMN B-TABLE O


Question: What is the name of the instructor who advises the student with the greatest number of total credits?

SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1

What is the name of the instructor who advises the student with the greatest number of total credits ?

O O O B-COLUMN O O B-TABLE O B-TABLE O B-TABLE O O O O O B-COLUMN I-COLUMN O


Question: Find the name and credit score of the customers who have some loans.

SELECT DISTINCT T1.cust_name ,  T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id

Find the name and credit score of the customers who have some loans .

O O O O B-COLUMN I-COLUMN O O B-TABLE O O O B-TABLE O


Question: What is indicator code of Rural population?

SELECT DISTINCT IndicatorCode FROM Indicators WHERE IndicatorName = 'Rural population'

What is indicator code of Rural population ?

O O B-TABLE B-COLUMN O B-VALUE I-VALUE O


Question: What is the average scores of Tiramisu Kitchen in all inspections?

SELECT AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Tiramisu Kitchen'

What is the average scores of Tiramisu Kitchen in all inspections ?

O O O O B-COLUMN O B-VALUE I-VALUE O O B-TABLE O


Question: Which Apollo Ltd customer's order number has the most expensive unit price, indicating the order date?

SELECT T1.OrderNumber, T1.OrderDate FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Apollo Ltd' ORDER BY T1.`Unit Price` DESC LIMIT 1

Which Apollo Ltd customer 's order number has the most expensive unit price , indicating the order date ?

O B-VALUE I-VALUE B-TABLE I-TABLE B-COLUMN I-COLUMN O O O O B-COLUMN I-COLUMN O O O B-COLUMN I-COLUMN O


Question: On what day was the order with invoice number 10 placed?

SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10

On what day was the order with invoice number 10 placed ?

O O O O O B-TABLE O B-COLUMN I-COLUMN B-VALUE O O


Question: What are the titles of the top 5 posts with the highest popularity?

SELECT Title FROM posts ORDER BY ViewCount DESC LIMIT 5

What are the titles of the top 5 posts with the highest popularity ?

O O O B-COLUMN O O O O B-TABLE O O O O O


Question: What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"?

SELECT date_of_latest_logon FROM Students WHERE family_name  =  "Jaskolski" OR family_name  =  "Langosh"

What are the dates of the latest logon of the students with family name " Jaskolski " or " Langosh " ?

O O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-TABLE O B-COLUMN I-COLUMN O B-COLUMN O O O B-COLUMN O O


Question: Does bond id TR001_1_8 have both element of chlorine and carbon?

SELECT T2.bond_id, T2.atom_id2, T1.element AS flag_have_CaCl FROM atom AS T1 INNER JOIN connected AS T2 ON T2.atom_id = T1.atom_id WHERE T2.bond_id = 'TR001_1_8' AND (T1.element = 'c1' OR T1.element = 'c')

Does bond i d TR001_1_8 have both element of chlorine and carbon ?

O B-COLUMN I-COLUMN I-COLUMN B-VALUE O O B-COLUMN O O O O O


Question: What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.

SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'

What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision .

O O O B-COLUMN O O O O B-TABLE O O O O O O O O O B-TABLE B-COLUMN O


Question: Which gas station has the highest amount of revenue?

SELECT GasStationID FROM transactions_1k GROUP BY GasStationID ORDER BY SUM(Price) DESC LIMIT 1

Which gas station has the highest amount of revenue ?


Question: Which clubs have one or more members from the city with code "BAL"? Give me the names of the clubs.

SELECT DISTINCT t1.clubname 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 t3.city_code  =  "BAL"

Which clubs have one or more members from the city with code " BAL " ? Give me the names of the clubs .

O B-TABLE B-COLUMN O O O O O O B-COLUMN I-COLUMN I-COLUMN O B-COLUMN O O O O O O O O O O


Question: How many line items were returned in 1998?

SELECT l_linenumber FROM lineitem WHERE STRFTIME('%Y', l_shipdate) < 1997 AND l_shipmode = 'TRUCK'

How many line items were returned in 1998 ?


Question: In terms of the fastest lap time, what is the name of the race which recorded the fastest lap speed by a racer?

SELECT T1.name FROM races AS T1 INNER JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapTime ASC LIMIT 1

In terms of the fastest lap time , what is the name of the race which recorded the fastest lap speed by a racer ?

O O O O B-COLUMN I-COLUMN I-COLUMN O O O O B-COLUMN O O B-TABLE O O O O O O O O O O


Question: State the number of tweets from Michigan on Thursdays.

SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Weekday = 'Thursday' AND T2.State = 'Michigan'

State the number of tweets from Michigan on Thursdays .

B-COLUMN O O O B-COLUMN O B-VALUE O B-VALUE O


Question: What is the average unit profit for wholesalers of canned beers?

SELECT AVG(T2.CurrentRetailPrice - T2.WholesaleCost) FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T1.ContainerType = 'Can'

What is the average unit profit for wholesalers of canned beers ?

O O O O O O O B-COLUMN O B-VALUE B-TABLE O


Question: How many cusomters visited on each date?

SELECT date ,  COUNT (DISTINCT CustomerId) FROM receipts GROUP BY date

How many cusomters visited on each date ?


Question: How many complaints from customers with a gmail.com email were received by the company in February 2017?

SELECT COUNT(T1.email) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE (T2.`Date received` LIKE '2017-02%' OR T2.`Date received` LIKE '2017-01%') AND T1.email LIKE '%@gmail.com'

How many complaints from customers with a gmail.com email were received by the company in February 2017 ?

O B-COLUMN B-TABLE O O O O B-VALUE B-COLUMN B-COLUMN I-COLUMN O O O O O B-VALUE O


Question: Provide the name of artists who had no more than 100 downloads and are tagged "funk" in 1980.

SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'funk' AND T1.groupYear = 1980 AND T1.totalSnatched <= 100

Provide the name of artists who had no more than 100 downloads and are tagged " funk " in 1980 .

O O O O B-COLUMN O O O O O B-VALUE O O O B-COLUMN O B-VALUE O O B-VALUE O


Question: Name the elements that comprise the atoms of bond TR001_2_4.

SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_2_4'

Name the elements that comprise the atoms of bond TR001_2_4 .

O O B-COLUMN O O O B-TABLE O B-COLUMN B-VALUE O


Question: What are the names of wines with scores higher than 90?

SELECT Name FROM WINE WHERE score  >  90

What are the names of wines with scores higher than 90 ?

O O O B-COLUMN O B-TABLE O B-COLUMN O O B-VALUE O


Question: How many languages are there?


Question: What is the average height of all the goalies born in the 70s who's a left shooting/catching dominant and to which team do the tallest player/s play for most recently?

SELECT CAST(SUM(T2.height) AS REAL) / COUNT(*) FROM AwardsPlayers AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.height IS NOT NULL AND (T2.pos = 'LW' OR T2.pos = 'L/C')

What is the average height of all the goalies born in the 70s who 's a left shooting / catching dominant and to which team do the tallest player / s play for most recently ?

O O O O B-COLUMN O O O O O O O O O O O O O O O O O O O O O O O B-COLUMN B-TABLE I-TABLE O O B-TABLE O O


Question: Give the phone number of the only student who obtained "A" in the course "Intro to BlockChain".

SELECT T1.phone_number FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to BlockChain' AND T2.grade = 'A'

Give the phone number of the only student who obtained " A " in the course " Intro to BlockChain " .

O O B-COLUMN B-COLUMN O O O B-TABLE O O O B-VALUE O O O B-TABLE O B-VALUE I-VALUE I-VALUE O O


Question: How many of the molecules are not carcinogenic?

SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '-'

How many of the molecules are not carcinogenic ?


Question: Please list the IDs of all the matches in the year 2008.

SELECT Match_Id FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008'

Please list the IDs of all the matches in the year 2008 .


Question: Please list the names of races with drivers aged 26 or older participating.

SELECT T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID WHERE T1.Age  >=  26

Please list the names of races with drivers aged 26 or older participating .

O O O O O B-TABLE O B-TABLE B-COLUMN B-VALUE O O O O


Question: List all club names in ascending order of start year.

SELECT name FROM club ORDER BY Start_year ASC

List all club names in ascending order of start year .

O O B-TABLE B-COLUMN O O O O B-COLUMN I-COLUMN O


Question: List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.

SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender = 'Female'

List the eyes , hair and skin colour of all female superheroes published by Dark Horse Comics .

O O O O O O B-COLUMN B-COLUMN O O B-VALUE B-TABLE B-TABLE O B-VALUE I-VALUE I-VALUE O


Question: How many games were sold on PS3 platform in Japan?

SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3'

How many games were sold on PS3 platform in Japan ?

O O O O O O B-VALUE B-TABLE B-COLUMN B-VALUE O


Question: How many calories from fat are there in the recipe "Raspberry Chiffon Pie"?

SELECT T2.calories * T2.pcnt_cal_fat FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie'

How many calories from fat are there in the recipe " Raspberry Chiffon Pie " ?

O O B-COLUMN O O O O O O B-TABLE O B-VALUE I-VALUE I-VALUE O O


Question: What is the opening time of the active businesses in Chandler that has a medium review count.

SELECT DISTINCT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Chandler' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Medium'

What is the opening time of the active businesses in Chandler that has a medium review count .

O O O B-COLUMN I-COLUMN O O B-COLUMN B-TABLE O B-VALUE O O O B-VALUE B-COLUMN I-COLUMN O


Question: Show the transmitters of radios whose ERP is bigger than 150 or smaller than 30.

SELECT Transmitter FROM radio WHERE ERP_kW  >  150 OR ERP_kW  <  30

Show the transmitters of radios whose ERP is bigger than 150 or smaller than 30 .

O O B-COLUMN O B-TABLE O B-COLUMN O O O B-VALUE O O O B-VALUE O


Question: List the names of all genres in alphabetical oder, together with its ratings.

SELECT g_name ,  rating FROM genre ORDER BY g_name

List the names of all genres in alphabetical oder , together with its ratings .

O O B-COLUMN O O B-TABLE O O O O O O O B-COLUMN O


Question: How many different kinds of information sources are there for injury accidents?

SELECT count(DISTINCT SOURCE) FROM injury_accident

How many different kinds of information sources are there for injury accidents ?

O O O O O O B-COLUMN O O O B-TABLE I-TABLE O


Question: Among the countries whose agriculture percentage of the GDP is under 50%, how many of them have an area of over 8000000?

SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Agriculture < 50 AND T1.Area > 8000000

Among the countries whose agriculture percentage of the GDP is under 50 % , how many of them have an area of over 8000000 ?

O O B-COLUMN O B-COLUMN O O O O O O B-VALUE O O O O O O O O B-COLUMN O O B-VALUE O


Question: Find the number of pilots whose age is younger than all pilots whose plane is F-14 Fighter.

SELECT count(*) FROM pilotskills WHERE age  <  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'F-14 Fighter')

Find the number of pilots whose age is younger than all pilots whose plane is F-14 Fighter .

O O O O B-TABLE O B-COLUMN O O O O O O B-COLUMN O B-VALUE I-VALUE O


Question: List the university ID of the university that scored 100 in 2011.

SELECT university_id FROM university_ranking_year WHERE score = 100 AND year = 2011

List the university ID of the university that scored 100 in 2011 .

O O B-COLUMN I-COLUMN O O O O B-COLUMN B-VALUE O B-VALUE O


Question: What are the countries with the most airlines whose active status is Y?

SELECT country FROM airlines WHERE active  =  'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1

What are the countries with the most airlines whose active status is Y ?

O O O B-COLUMN O O O B-TABLE O B-COLUMN O O B-VALUE O


Question: What was the age of the youngest patient when they initially arrived at the hospital?

SELECT MIN(STRFTIME('%Y', `First Date`) - STRFTIME('%Y', Birthday)) FROM Patient

What was the age of the youngest patient when they initially arrived at the hospital ?


Question: How many songs are there?


Question: What are the titles and paper ids for papers written in affiliation with Harvard University?

SELECT DISTINCT T1.title ,  T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name  =  "Harvard University"

What are the titles and paper ids for papers written in affiliation with Harvard University ?

O O O B-COLUMN O B-TABLE B-COLUMN O O O O B-TABLE O B-COLUMN I-COLUMN O


Question: For each project id, how many tasks are there?

SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id

For each project i d , how many tasks are there ?

O O B-TABLE B-COLUMN I-COLUMN O O O B-TABLE O O O


Question: List the authors who created review for podcast titled 'Pop Rocket' in 2016 with rating less than 5.

SELECT T2.author_id FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Pop Rocket' AND T2.created_at LIKE '2016-%' AND T2.rating < 5

List the authors who created review for podcast titled ' Pop Rocket ' in 2016 with rating less than 5 .

O O B-COLUMN O B-COLUMN B-TABLE O B-TABLE B-COLUMN O B-VALUE I-VALUE O O B-VALUE O B-COLUMN O O B-VALUE O


Question: In 2010, how many single patients took Nitrofurantoin 5 mg/ML [Furadantin] to cure cystitis?

SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.marital = 'S' AND T2.REASONDESCRIPTION = 'Cystitis' AND T2.DESCRIPTION = 'Nitrofurantoin 5 MG/ML [Furadantin]' AND strftime('%Y', T2.START) = '2010'

In 2010 , how many single patients took Nitrofurantoin 5 mg / ML [ Furadantin ] to cure cystitis ?

O B-VALUE O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O B-VALUE O


Question: Please provide a list of clients who were born between 1983 and 1987 and whose account branch is in East Bohemia, along with their IDs.

SELECT T1.client_id, T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id and T4.account_id = T3.account_id WHERE T2.A3 = 'east Bohemia' AND STRFTIME('%Y', T1.birth_date) BETWEEN '1983' AND '1987'

Please provide a list of clients who were born between 1983 and 1987 and whose account branch is in East Bohemia , along with their IDs .

O O B-COLUMN O O B-TABLE O O O O B-VALUE O B-VALUE O O B-TABLE O B-TABLE O B-VALUE I-VALUE O O O O O O


Question: What is the average revenue of American movies in 2006?

SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'United States of America' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2006

What is the average revenue of American movies in 2006 ?

O O O O B-COLUMN B-VALUE I-VALUE B-TABLE B-COLUMN B-VALUE O


Question: State the name of the most strongest player.

SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) FROM Player_Attributes)

State the name of the most strongest player .


Question: In which region can you find the stores located in the state whose median income is no more than 30,000?

SELECT T FROM ( SELECT DISTINCT CASE  WHEN T2.`Median Income` < 30000 THEN T1.Region END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode ) WHERE T IS NOT NULL

In which region can you find the stores located in the state whose median income is no more than 30,000 ?

O O B-COLUMN O O O O B-TABLE I-TABLE I-TABLE O B-COLUMN O B-COLUMN I-COLUMN O O O O B-VALUE O


Question: Calculate the total trading quantity of Abraham sold to Aaron Alexander.

SELECT SUM(T2.Quantity) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T2.SalesPersonID = 1 AND T1.FirstName = 'Aaron' AND T1.LastName = 'Alexander' AND T3.FirstName = 'Abraham'

Calculate the total trading quantity of Abraham sold to Aaron Alexander .

O O O O B-COLUMN O B-VALUE O O B-VALUE B-VALUE O


Question: What is the membership level with the most people?

SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1

What is the membership level with the most people ?


Question: What is the name of every distinct painting in alphabetical order?

SELECT DISTINCT title FROM paintings ORDER BY title

What is the name of every distinct painting in alphabetical order ?


Question: List the titles of books in ascending order of the ratings in review?

SELECT T1.Title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Rating ASC

List the titles of books in ascending order of the ratings in review ?

O O B-COLUMN O B-TABLE O O O O O B-COLUMN O B-TABLE O


Question: Find the top 3 artists who have the largest number of songs works whose language is Bangla.

SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "bangla" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3

Find the top 3 artists who have the largest number of songs works whose language is Bangla .

O O O O B-TABLE O O O O O O B-TABLE O O B-COLUMN O B-COLUMN O


Question: How many books under 300 pages has HarperCollins Publishers published?

SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'HarperCollins Publishers' AND T1.num_pages < 300

How many books under 300 pages has HarperCollins Publishers published ?

O O B-TABLE O B-VALUE B-COLUMN O B-VALUE B-TABLE B-COLUMN O


Question: What are the three colleges from which the most players are from?

SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3

What are the three colleges from which the most players are from ?


Question: What percentage of all tied games did the Sassuolo team play in?

SELECT CAST(SUM(CASE WHEN HomeTeam = 'Sassuolo' OR AwayTeam = 'Sassuolo' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(FTR) FROM matchs WHERE FTR = 'D'

What percentage of all tied games did the Sassuolo team play in ?


Question: How many employed disabled students have zero absences?

SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name INNER JOIN unemployed AS T3 ON T3.name = T2.name WHERE T1.month = 0

How many employed disabled students have zero absences ?


Question: Find the common login name of course authors and students.

SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students

Find the common login name of course authors and students .

O O O B-COLUMN I-COLUMN O B-TABLE I-TABLE I-TABLE B-TABLE O


Question: What are the names of students who took a course in the Fall of 2003?

SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)

What are the names of students who took a course in the Fall of 2003 ?

O O O B-COLUMN O B-TABLE O O O O O O B-VALUE O B-VALUE O


Question: List down 10 country codes and it's short names.

SELECT CountryCode, ShortName FROM Country LIMIT 10

List down 10 country codes and it 's short names .

O O O B-TABLE B-COLUMN O O O B-COLUMN I-COLUMN O


Question: Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.

SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"

O O B-TABLE B-COLUMN O O O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN O


Question: Who are the voice actors in the movie that came out on 11/24/2010?

SELECT T2.`voice-actor` FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T1.release_date = 'Nov 24, 2010'

Who are the voice actors in the movie that came out on 11/24/2010 ?

O O O B-COLUMN I-COLUMN O O B-COLUMN B-COLUMN O O B-VALUE I-VALUE O


Question: Which product has the highest price in 2012?

SELECT ProductID FROM ProductListPriceHistory WHERE StartDate LIKE '2012%' ORDER BY ListPrice DESC LIMIT 1

Which product has the highest price in 2012 ?

O B-COLUMN B-TABLE I-TABLE B-COLUMN I-COLUMN O B-VALUE O


Question: Calculate the average rent amount paid by the customer with customer id 15.

SELECT AVG(amount) FROM payment WHERE customer_id = 15

Calculate the average rent amount paid by the customer with customer i d 15 .

O O O O B-COLUMN O O O O O B-COLUMN I-COLUMN I-COLUMN B-VALUE O


Question: How many movie directors are there?

SELECT COUNT (DISTINCT director) FROM movie


Question: What are the name and total book sale amount of each press?

SELECT sum(t1.sale_amount) ,  t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id  =  t2.press_id GROUP BY t1.press_id

What are the name and total book sale amount of each press ?

O O O B-COLUMN O O B-TABLE B-COLUMN I-COLUMN O O B-TABLE O


Question: What are the names and dates for documents corresponding to project that has the details 'Graph Database project'?

SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'Graph Database project'

What are the names and dates for documents corresponding to project that has the details ' Graph Database project ' ?

O O O O O O O B-TABLE O O B-TABLE B-COLUMN O O O O B-VALUE I-VALUE B-COLUMN O O


Question: What are the positions and teams of pilots?

What are the positions and teams of pilots ?


Question: What is the full name of the employee who handled the highest amount of orders?

SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.FirstName, T1.LastName ORDER BY COUNT(*) DESC LIMIT 1

What is the full name of the employee who handled the highest amount of orders ?

O O O O B-COLUMN O O B-TABLE O O O O O O B-TABLE O


Question: Which store has most the customers?

SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1


Question: What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?

SELECT T2.name ,  T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT min(hours) FROM projects)

What is the name of the project that requires the fewest number of hours , and the names of the scientists assigned to it ?

O O O B-COLUMN O O B-COLUMN O O O O O O B-COLUMN O O O O O O B-COLUMN B-TABLE I-TABLE O O


Question: How many stars on average does user no.3 give to Yelp_Business in Arizona?

SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state LIKE 'AZ' AND T2.user_id = 3

How many stars on average does user no.3 give to Yelp_Business in Arizona ?

O O B-COLUMN O O O B-COLUMN O O O B-TABLE B-COLUMN O O


Question: How many users of the app were not active when event no.2 happened?

SELECT COUNT(event_id) FROM app_events WHERE event_id = 2 AND is_active = 0

How many users of the app were not active when event no.2 happened ?

O O O O O O O O B-COLUMN O B-COLUMN O O O


Question: What is the largest number of films rented per customer?

SELECT COUNT(rental_id) FROM rental GROUP BY customer_id ORDER BY COUNT(rental_id) DESC LIMIT 1

What is the largest number of films rented per customer ?


Question:
List at least 5 users that has received less than 5 low compliments from
other users.

SELECT user_id FROM Users_Compliments WHERE number_of_compliments LIKE 'Low' GROUP BY user_id ORDER BY COUNT(number_of_compliments) > 5 LIMIT 5

List at least 5 users that has received less than 5 low compliments from other users .

O O O O O O O O O O B-VALUE B-VALUE B-TABLE O O O B-COLUMN O


Question: What are the distinct classes that races can have?

What are the distinct classes that races can have ?


Question: What is the total quantities of dishes ordered by each customer ? List the customer name and the total quantity .

select t1.name ,  sum(t2.quantity) from customer as t1 join customer_order as t2 on t1.customer_id  =  t2.customer_id group by t1.name

O O O O O O O O O O B-TABLE O O O B-TABLE B-COLUMN O O O B-COLUMN O


Question: What are all the payment methods?

SELECT DISTINCT payment_method FROM customers


Question: Which year is credit card No.9648's Expiration Year?

SELECT ExpYear FROM CreditCard WHERE CreditCardID = 9648

Which year is credit card No.9648 's Expiration Year ?

O B-COLUMN O B-TABLE I-TABLE B-VALUE O O O O


Question: Please show the nominee who has been nominated the greatest number of times.

SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1

Please show the nominee who has been nominated the greatest number of times .


Question: Among the episodes aired on April of 2009, how many episodes won an award?

SELECT COUNT(T1.episode_id) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2009' AND T2.air_date LIKE '2009-04%';

Among the episodes aired on April of 2009 , how many episodes won an award ?

O O B-COLUMN B-COLUMN O O O B-VALUE O O O B-TABLE O O B-TABLE O


Question: How many in debt customers in the household market segment are from Russia?

SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 0 AND T1.c_mktsegment = 'HOUSEHOLD' AND T2.n_name = 'RUSSIA'

How many in debt customers in the household market segment are from Russia ?

O O O O B-TABLE O O B-VALUE B-COLUMN I-COLUMN O O B-VALUE O


Question: How many elements are contained in bond_id TR001_3_4?

SELECT COUNT(DISTINCT T1.element) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_3_4'

How many elements are contained in bond_id TR001_3_4 ?

O O B-COLUMN O B-TABLE O B-COLUMN B-VALUE O


Question: Identify all connected atoms with a triple bond.

SELECT T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.bond_type = '#'

Identify all connected atoms with a triple bond .


Question: List out the series code of countries using Euro as their currency unit.

SELECT DISTINCT T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Euro'

List out the series code of countries using Euro as their currency unit .

O O O B-COLUMN I-COLUMN O B-TABLE O B-VALUE O O B-COLUMN I-COLUMN O


Question: Among all the customers, how many of them are teenagers?

SELECT COUNT(ID) FROM Customers WHERE age >= 13 AND age <= 19

Among all the customers , how many of them are teenagers ?


Question: Find the names of patients who are not using the medication of Procrastin-X.

SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient  =  T1.SSN JOIN Medication AS T3 ON T2.Medication  =  T3.Code WHERE T3.name  =  'Procrastin-X'

Find the names of patients who are not using the medication of Procrastin - X.

O O B-COLUMN O B-COLUMN O O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE


Question: Identify the total number of posts with views above average.

SELECT Id FROM posts WHERE ViewCount > ( SELECT AVG(ViewCount) FROM posts )

Identify the total number of posts with views above average .


Question: What is the phone number and extension number for the school that had the 333rd highest average writing score?

SELECT T2.Phone, T2.Ext FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrWrite DESC LIMIT 332, 1

What is the phone number and extension number for the school that had the 333rd highest average writing score ?

O O O B-COLUMN O O O O O O B-TABLE O O O O O O O B-COLUMN O


Question: What are the names of the schools with the top 3 largest class sizes?

SELECT cName FROM college ORDER BY enr DESC LIMIT 3

What are the names of the schools with the top 3 largest class sizes ?


Question: Find the name and total book sale amount of each press.

SELECT sum(t1.sale_amount) ,  t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id  =  t2.press_id GROUP BY t1.press_id

Find the name and total book sale amount of each press .

O O B-COLUMN O O B-TABLE B-COLUMN I-COLUMN O O B-TABLE O


Question: Please list three businesses with the lowest total sales from last year.

SELECT BusinessEntityID FROM SalesPerson ORDER BY SalesLastYear LIMIT 3

Please list three businesses with the lowest total sales from last year .

O O O B-COLUMN I-COLUMN O O O B-TABLE I-TABLE B-COLUMN I-COLUMN O


Question: Find all the albums in 2012.

SELECT * FROM Albums WHERE YEAR  =  2012


Question: List the names of members whose nationality is not `` England '' .

select name from member where nationality != "england"

List the names of members whose nationality is not ` ` England '' .

O O B-COLUMN O B-TABLE O B-COLUMN O O O O B-COLUMN O O


Question: Name the top 3 drivers and the points they scored in the 2017 Chinese Grand Prix.

SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Chinese Grand Prix' AND T1.year = 2017 ORDER BY T2.points DESC LIMIT 3

Name the top 3 drivers and the points they scored in the 2017 Chinese Grand Prix .

B-COLUMN O O O B-TABLE B-TABLE O B-COLUMN O O O O B-VALUE B-VALUE I-VALUE I-VALUE O


Question: Count the number of artists.


Question: What are the names of all the clubs ordered in descending alphabetical order?

SELECT name FROM club ORDER BY name DESC

What are the names of all the clubs ordered in descending alphabetical order ?

O O O B-COLUMN O O O B-TABLE O O O O O O


Question: Find the name and id of Sailors (sid) that reserved red or blue boat.

SELECT DISTINCT T2.sid ,  T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON  T1.bid  =  T2.bid JOIN Sailors AS T3 ON T2.sid  =  T3.sid WHERE T1.color  =  'red' OR T1.color  =  "blue"

Find the name and i d of Sailors ( sid ) that reserved red or blue boat .

O O B-COLUMN O B-COLUMN I-COLUMN O B-TABLE O B-COLUMN O O B-TABLE B-VALUE O B-COLUMN B-TABLE O


Question: List the maximum scores of the team Boston Red Stockings when the team won in postseason?

SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';

List the maximum scores of the team Boston Red Stockings when the team won in postseason ?

O O O O O O B-TABLE B-VALUE I-VALUE I-VALUE O O O O B-COLUMN B-TABLE O


Question: What are the city name and average distances from each city?

SELECT T2.city_name ,  avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code GROUP BY T1.city1_code

What are the city name and average distances from each city ?

O O O B-TABLE B-COLUMN O O B-COLUMN O O B-COLUMN O


Question: Of all the nonessential genes that are not of the motorprotein class and whose phenotype is cell cycle defects, how many do not have a physical type of interaction?

SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Type != 'Physical' AND T1.Phenotype = 'Cell cycle defects' AND T1.Class != 'Motorproteins' AND T1.Essential = 'Non-Essential'

Of all the nonessential genes that are not of the motorprotein class and whose phenotype is cell cycle defects , how many do not have a physical type of interaction ?

O O O B-COLUMN B-TABLE O O O O O B-VALUE B-COLUMN O O B-COLUMN O B-VALUE I-VALUE I-VALUE O O O O O O O B-VALUE B-COLUMN O B-TABLE O


Question: Which reviewer gives the biggest number of the highest rating?

SELECT ReviewerName FROM ProductReview WHERE Rating = ( SELECT Rating FROM ProductReview ORDER BY Rating DESC LIMIT 1 )

Which reviewer gives the biggest number of the highest rating ?


Question: Find the full name and email address of inactive customers whose record was created in 2006.

SELECT first_name, last_name, email FROM customer WHERE STRFTIME('%Y',create_date) = '2006' AND active = 0

Find the full name and email address of inactive customers whose record was created in 2006 .

O O O B-COLUMN O B-COLUMN O O B-COLUMN B-TABLE O O O B-COLUMN O B-VALUE O


Question: How many unique classes are offered?

SELECT count(DISTINCT class_code) FROM CLASS


Question: What is the most common amenity in the dorms?

SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1

What is the most common amenity in the dorms ?


Question: Among the active businesses in Arizona, how many businesses work after 12PM?

SELECT COUNT(DISTINCT T2.business_id) FROM Business_Hours AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active = 'true' AND T2.state = 'AZ' AND T1.opening_time > '12PM'

Among the active businesses in Arizona , how many businesses work after 12PM ?

O O B-COLUMN B-COLUMN O O O O O B-TABLE O B-COLUMN B-VALUE O


Question: Please list top three elements of the toxicology of the molecule TR000 in alphabetical order.

SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR000' ORDER BY T.element LIMIT 3

Please list top three elements of the toxicology of the molecule TR000 in alphabetical order .

O O O O B-COLUMN O O O O O B-COLUMN B-VALUE O O O O


Question: Find the name of rooms whose base price is between 120 and 150.

SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150

Find the name of rooms whose base price is between 120 and 150 .

O O B-COLUMN O B-TABLE O B-COLUMN I-COLUMN O O B-VALUE O B-VALUE O


Question: What are the names of clubs, ordered alphabetically?

What are the names of clubs , ordered alphabetically ?


Question: What are the student ids for all male students?

SELECT StuID FROM Student WHERE Sex  =  'M'

What are the student ids for all male students ?


Question: Calculate the percentage of American cars among all cars.

SELECT CAST(SUM(CASE WHEN T3.country = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country

Calculate the percentage of American cars among all cars .


Question: How many regions were affected by each storm?

SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id

How many regions were affected by each storm ?


Question: How many different services are provided by all stations?

SELECT count(DISTINCT services) FROM station

How many different services are provided by all stations ?


Question: How many distinct programs are broadcast at "Night" time?

SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'

How many distinct programs are broadcast at " Night " time ?

O O O B-COLUMN O B-TABLE O O B-VALUE O O O


Question: What are the names of all playlists that have more than 100 tracks?

SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;

What are the names of all playlists that have more than 100 tracks ?

O O O B-COLUMN O O B-TABLE O O O O B-VALUE B-COLUMN O


Question: Find the name of students who didn't take any course from Biology department.

SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')

Find the name of students who did n't take any course from Biology department .

O O B-COLUMN O B-TABLE O B-COLUMN O B-TABLE O B-TABLE O B-VALUE B-COLUMN O


Question: What is the area code of Phillips county in Montana?

SELECT DISTINCT T1.area_code FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN state AS T3 ON T2.state = T3.abbreviation WHERE T2.county = 'PHILLIPS' AND T3.name = 'Montana'

What is the area code of Phillips county in Montana ?

O O O B-TABLE B-COLUMN O B-VALUE B-COLUMN O B-VALUE O


Question: Name all the podcast title and its category with average rating of more than 3.0.

SELECT T2.title, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id GROUP BY T3.podcast_id HAVING AVG(T3.rating) > 3

Name all the podcast title and its category with average rating of more than 3.0 .

O O O B-TABLE B-COLUMN O O B-COLUMN O O B-COLUMN O O O O O


Question: Show all types of powertrain and the number of vehicles in each type.

SELECT type_of_powertrain ,  count(*) FROM vehicles GROUP BY type_of_powertrain

Show all types of powertrain and the number of vehicles in each type .

O O B-COLUMN I-COLUMN I-COLUMN O O O O B-TABLE O O O O


Question: How many customers have placed any order?

SELECT count(DISTINCT customer_id) FROM Orders

How many customers have placed any order ?


Question: List the movies in the Somali language.

SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Somali'

List the movies in the Somali language .

O O B-TABLE B-COLUMN O B-VALUE B-TABLE O


Question: Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20.

SELECT T1.person FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Homer simpson 20' AND T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Voice-Over Performance' AND T1.result = 'Winner';

Name the performer who won Emmy Award for Outstanding Voice - Over Performance by playing Homer simpson 20 .

O O O O O B-VALUE B-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O B-VALUE B-COLUMN B-VALUE O


Question: Please describe the menu sponsored by Noviomagus physically.

SELECT physical_description FROM Menu WHERE sponsor = 'Noviomagus'

Please describe the menu sponsored by Noviomagus physically .


Question: What types of ships have both ships that have Panama Flags and Malta flags?

SELECT TYPE FROM ship WHERE flag  =  'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag  =  'Malta'

What types of ships have both ships that have Panama Flags and Malta flags ?

O B-COLUMN O B-TABLE O O O O O B-VALUE B-COLUMN O B-VALUE O O


Question: Which policy type has the most records in the database?

SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1

Which policy type has the most records in the database ?


Question: Of all the claims, what was the earliest date when any claim was made?

SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1

Of all the claims , what was the earliest date when any claim was made ?

O O O B-TABLE O O O O O O O O B-COLUMN I-COLUMN I-COLUMN O


Question: What is the the phone number of Nancy Edwards?

SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";

What is the the phone number of Nancy Edwards ?

O O O O B-COLUMN O O B-COLUMN B-COLUMN O


Question: Show the No.3 character name in the credit list of the movie "G.I. Joe: The Rise of Cobra".

SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'G.I. Joe: The Rise of Cobra' AND T2.creditOrder = '3'

Show the No.3 character name in the credit list of the movie " G.I. Joe : The Rise of Cobra " .

O O O B-TABLE B-COLUMN O O B-COLUMN O O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: What are the titles and directors of the films were never presented in China?

SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')

What are the titles and directors of the films were never presented in China ?

O B-TABLE O B-COLUMN O B-COLUMN O O B-TABLE O O O O B-VALUE O


Question: Show all video game types.


Question: Which Photography app has the highest total Sentiment subjectivity score?

SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Photography' GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Subjectivity) DESC LIMIT 1

Which Photography app has the highest total Sentiment subjectivity score ?

O B-VALUE B-COLUMN O O O O B-COLUMN I-COLUMN O O