human
Schema:
entrepreneur (Entrepreneur_ID, People_ID, Company, Money_Requested, Investor)
people (People_ID, Name, Height, Weight, Date_of_Birth)
Please answer with SQL.
assistant
Sure, I understand.
human
How many entrepreneurs are there?
assistant
SELECT count(*) FROM entrepreneur
human
What are the names of entrepreneurs?
assistant
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
human
List the companies and the investors of entrepreneurs.
assistant
SELECT Company , Investor FROM entrepreneur
human
What are the weights of entrepreneurs in descending order of money requested?
assistant
SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC
human
List the names of entrepreneurs and their companies in descending order of money requested?
assistant
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
human
What are the companies of entrepreneurs, ordered descending by amount of money requested?
assistant
SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC ;