This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
FIBEN_Queries.json
1 lines (1 loc) · 391 KB
/
FIBEN_Queries.json
1
[{"uniqueQueryID":1,"question":" Tell me the last traded value of Alphabet","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":2,"question":" show me revenues for Alphabet?","isParaphrased":false,"SQL":" SELECT ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'Alphabet Inc.' AND ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019'","queryType":"non-nested"},{"uniqueQueryID":3,"question":" how many such stocks are there whose last traded value does not exceed 1","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\"<=1","queryType":"non-nested"},{"uniqueQueryID":4,"question":" Who has more than 1 account holding IBM?","isParaphrased":false,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS Count_oFinancialServiceAccount_hasAccountNumber, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oHolding.\"ISHELDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") > 1","queryType":"non-nested"},{"uniqueQueryID":5,"question":" Show me the companies in the services industry","isParaphrased":false,"SQL":" SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oIndustrySectorClassifier.\"HASNUMERICCODE\" AS oIndustrySectorClassifier_hasNumericCode, oIndustrySectorClassifier.\"HASUNIQUEIDENTIFIER\" AS oIndustrySectorClassifier_hasUniqueIdentifier, oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oIndustrySectorClassifier.\"HASDESCRIPTION\" AS oIndustrySectorClassifier_hasDescription FROM FIBEN.\"CORPORATION\" oCorporation INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" = 'Services'","queryType":"non-nested"},{"uniqueQueryID":6,"question":" find all stocks has a last traded value Greater than 1500","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":7,"question":" what is the number of stocks with last traded value is over 1500","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":8,"question":" Hakon Schuster bought stock on 17 May 2016, which company was it for","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASLASTNAME\" = 'Schuster' AND oPerson.\"HASFIRSTNAME\" = 'Hakon' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-05-17 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-05-17 23:59:00.000'","queryType":"non-nested"},{"uniqueQueryID":9,"question":" show me the maximum last traded value in NYSE","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE'","queryType":"non-nested"},{"uniqueQueryID":10,"question":" How does the average stock price compare between companies listed on the New York Stock Exchange and NASDAQ","isParaphrased":false,"SQL":" SELECT Avg(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oFinancialMarket.\"HASNAME\" FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" IN ('NASDAQ','NYSE') GROUP BY oFinancialMarket.\"HASNAME\"","queryType":"non-nested"},{"uniqueQueryID":11,"question":" What is the Largest last traded value recorded by MSFT ?","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":12,"question":" find Alphabet's maximum last traded value","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":13,"question":" What stock did Hakon Schuster buy on 17 May 2016","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASLASTNAME\" = 'Schuster' AND oPerson.\"HASFIRSTNAME\" = 'Hakon' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-05-17 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-05-17 23:59:00.000' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":14,"question":" What are all the accounts managed by Nam Davarian?","isParaphrased":false,"SQL":" SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASLASTNAME\" = 'Davarian' AND oPerson.\"HASFIRSTNAME\" = 'Nam'","queryType":"non-nested"},{"uniqueQueryID":15,"question":" Between the beginning of January and the end of April 2017, how many stocks of IBM were purchased?","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-04-30 23:59:00.000' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":16,"question":" what is the highest quarterly revenues reported in 2017","isParaphrased":false,"SQL":" SELECT Max(oElementOfFinancialStatement.\"HASMETRICVALUE\") AS AggResult1 FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2017' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2017'","queryType":"non-nested"},{"uniqueQueryID":17,"question":" In NYSE, which of the stocks has a last traded value Not higher than 1","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' AND oMonetaryAmount.\"HASAMOUNT\" <= 1","queryType":"non-nested"},{"uniqueQueryID":18,"question":" How many NYSE stocks has a last traded value Below 1","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1.0 AND oFinancialMarket.\"HASNAME\" = 'NYSE'","queryType":"non-nested"},{"uniqueQueryID":19,"question":" When was the last purchase of Adobe Systems stock","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Adobe' ORDER BY oSecuritiesTransaction.\"HASSETTLEMENTDATE\" DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":20,"question":" How many accounts are managed by Yue Gorn","isParaphrased":false,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1 FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" = 'Yue Gorn'","queryType":"non-nested"},{"uniqueQueryID":21,"question":" What price did Luis Statz sell DFRG at","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'DFRG' AND oPerson.\"HASFIRSTNAME\" = 'Luis' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASLASTNAME\" = 'Statz' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":22,"question":" Which person has the most number of accounts","isParaphrased":false,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":23,"question":" what are some stocks with a last traded value Greater than or equal to 1500","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" >= 1500.0","queryType":"non-nested"},{"uniqueQueryID":24,"question":" Show me Max last traded value by stocks","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASLEGALNAME\" ORDER BY AggResult1 DESC","queryType":"non-nested"},{"uniqueQueryID":25,"question":" what is highest last traded value for stocks where the last traded value is less than 100","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 100 ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":26,"question":" In NASDAQ and NYSE, what is has been the least last traded value reported","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oFinancialMarket.\"HASNAME\" FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" IN ('NASDAQ','NYSE') GROUP BY oFinancialMarket.\"HASNAME\"","queryType":"non-nested"},{"uniqueQueryID":27,"question":" How many shares of IBM were purchased After January 19 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-20 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2100-12-31 00:00:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":28,"question":" Per company, what are the number of stock purchases of it in 2015?","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" ListedSecurity1 ON oSecuritiesTransaction.\"REFERSTO\"=ListedSecurity1.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON ListedSecurity1.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2015-12-31 23:59:00.000' GROUP BY oCorporation.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":29,"question":" How many shares of IBM were purchased On the 13th of October, 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-10-13 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-10-13 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":30,"question":" How many shares of Microsoft were purchased","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Microsoft' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":31,"question":" Who are the top 3 account holders with the most transactions?","isParaphrased":false,"SQL":" SELECT Count(oSecuritiesTransaction.\"HASTYPE\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 3 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":32,"question":" What are the email addresses of account holders that live in California?","isParaphrased":false,"SQL":" SELECT oEmailAddress.\"HASVALUE\" AS oEmailAddress_hasValue, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"COUNTRY\" Country1 ON oPerson.\"HASPLACEOFBIRTH\"=Country1.\"COUNTRYID\" INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON Country1.\"COUNTRYID\"=oPostalAddress.\"HASCOUNTRY\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON oPerson.\"PERSONID\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=Address1.\"ISINDEXTO\" INNER JOIN FIBEN.\"VIRTUALADDRESS\" VirtualAddress1 ON Address1.\"VIRTUALADDRESS\"=VirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"EMAILADDRESS\" oEmailAddress ON VirtualAddress1.\"VIRTUALADDRESSID\"=oEmailAddress.\"EMAILADDRESSID\" WHERE oPostalAddress.\"HASSTATE\" = 'California'","queryType":"non-nested"},{"uniqueQueryID":33,"question":" count the number of stock having last traded value Smaller than 1","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1.0","queryType":"non-nested"},{"uniqueQueryID":19,"question":" When was the most recent purchase of Adobe Systems stock","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Adobe' ORDER BY oSecuritiesTransaction.\"HASSETTLEMENTDATE\" DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":22,"question":" Who owns the maximum number of accounts?","isParaphrased":true,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":34,"question":" How many shares of IBM were purchased Since 12 January 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-12 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2100-12-31 00:00:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":35,"question":" When was the earliest purchase of Adobe Systems stock","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Adobe' ORDER BY oSecuritiesTransaction.\"HASSETTLEMENTDATE\" ASC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":36,"question":" what is minimum last traded value for each stock","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASLEGALNAME\" ORDER BY AggResult1 ASC","queryType":"non-nested"},{"uniqueQueryID":37,"question":" How many shares of IBM were purchased in the 3rd quarter of 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-07-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-09-30 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":38,"question":" In NASDAQ what has been the highest last traded value for each stock","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NASDAQ' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" ORDER BY AggResult1 DESC","queryType":"non-nested"},{"uniqueQueryID":39,"question":" Which state does Luis Statz live in","isParaphrased":false,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" oAddress ON oPostalAddress.\"POSTALADDRESSID\"=oAddress.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON oAddress.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":40,"question":" What is the distribution by state of the number of people selling Microsoft stock in 2018.","isParaphrased":false,"SQL":" SELECT Count(oPerson.\"HASPERSONNAME\") AS AggResult1, oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON oPerson.\"PERSONID\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"ADDRESS\" Address1 ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=Address1.\"ISINDEXTO\" INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON Address1.\"POSTALADDRESS\"=oPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASLEGALNAME\" = 'Microsoft' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2011-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2011-12-31 23:59:00.000' GROUP BY oPostalAddress.\"HASSTATE\" FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":41,"question":" Show me average revenues generated by Adobe in last 4 years ?","isParaphrased":false,"SQL":" SELECT Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1 FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'Adobe' AND ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019'","queryType":"non-nested"},{"uniqueQueryID":42,"question":" find those stocks and the financial market where last traded value was Over 1500","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oFinancialMarket.\"HASNAME\" AS oFinancialMarket_hasName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" oSecurity ON oListedSecurity.\"LISTEDSECURITYID\"=oSecurity.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON oSecurity.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500","queryType":"non-nested"},{"uniqueQueryID":43,"question":" find those stocks which had a last traded value At most 1","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" <= 1.0","queryType":"non-nested"},{"uniqueQueryID":44,"question":" In what state does Luis Statz live","isParaphrased":false,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON Address1.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":45,"question":" who are on the board of Delta Air Lines?","isParaphrased":false,"SQL":" SELECT Person1.\"HASPERSONNAME\" AS oContractParty_hasPersonName FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oContractParty ON oContract.\"HASCONTRACTPARTY\"=oContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON oContractParty.\"CONTRACTPARTYID\"=Person1.\"PERSONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'DELTA AIR LINES INC'","queryType":"non-nested"},{"uniqueQueryID":46,"question":" what is the min last traded value per stock in NYSE","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' GROUP BY oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":47,"question":" How many shares of IBM were purchased After 12 January and before 23 August 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND ((oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-13 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2100-12-31 00:00:00.000') OR (oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '1900-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-08-22 23:59:00.000')) GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":48,"question":" On what date was the first purchase of Adobe Systems stock","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Adobe' AND oPerson.\"HASLASTNAME\" = 'Date' ORDER BY oSecuritiesTransaction.\"HASSETTLEMENTDATE\" ASC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":49,"question":" Of all stocks with a last traded value less than 100, how much was the highest last traded value","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 100 AND oMonetaryAmount.\"HASAMOUNT\" < 100.0 ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":6,"question":" what are some stocks with last traded value More than 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":1,"question":" The last traded value of Alphabet is what value","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":23,"question":" Which stock has a last traded value Greater or equal to 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" >= 1500.0","queryType":"non-nested"},{"uniqueQueryID":50,"question":" What is the state in which Luis Statz lives","isParaphrased":false,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON Address1.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":51,"question":" How many shares of IBM were purchased Between 12 January and 23 November 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-12 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-11-23 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":52,"question":" How many shares of IBM were purchased in 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":53,"question":" What is the name of the client that has more than 2 transactions to buy Citigroup stock","isParaphrased":false,"SQL":" SELECT Count(oSecuritiesTransaction.\"HASTYPE\") AS Count_oSecuritiesTransaction_hasType, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Count(oSecuritiesTransaction.\"HASTYPE\") > 2.0","queryType":"non-nested"},{"uniqueQueryID":54,"question":" Where does Luis Statz live","isParaphrased":false,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"ADDRESS\" oAddress INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON oAddress.\"POSTALADDRESS\"=oPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON oAddress.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":55,"question":" How many stocks in NYSE had a last traded value At least 1500","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oMonetaryAmount.\"HASAMOUNT\" >= 1500.0 AND oFinancialMarket.\"HASNAME\" = 'NYSE'","queryType":"non-nested"},{"uniqueQueryID":56,"question":" Which stock has 7 as its last traded value","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\"= 7.0","queryType":"non-nested"},{"uniqueQueryID":57,"question":" In NASDAQ find the stock that has a last traded value Equal to or less than 1","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oMonetaryAmount.\"HASAMOUNT\" <= 1 AND oFinancialMarket.\"HASNAME\" = 'NASDAQ'","queryType":"non-nested"},{"uniqueQueryID":58,"question":" what is smallest last traded value seen for IBM ?","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' ORDER BY AggResult1 ASC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":59,"question":" give me the highest last traded value numbers for every stock traded in NYSE","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' GROUP BY oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":60,"question":" which stocks reported a last traded value No larger than 1","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1.0","queryType":"non-nested"},{"uniqueQueryID":61,"question":" At what price did Luis Statz sell DFRG","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'DFRG' AND oPerson.\"HASFIRSTNAME\" = 'Luis' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASLASTNAME\" = 'Statz' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":62,"question":" who has been on the board of Synopsys since last 10 years ?","isParaphrased":false,"SQL":" SELECT oContract.\"HASEFFECTIVEDATE\" AS oContract_hasEffectiveDate, Person1.\"HASPERSONNAME\" AS oContractParty_hasPersonName FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oContractParty ON oContract.\"HASCONTRACTPARTY\"=oContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON oContractParty.\"CONTRACTPARTYID\"=Person1.\"PERSONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'Synopsys' AND oContract.\"HASEFFECTIVEDATE\" >= '2010-01-01 00:00:00.000' AND oContract.\"HASEFFECTIVEDATE\" <= '2100-12-31 00:00:00.000'","queryType":"non-nested"},{"uniqueQueryID":63,"question":" How much is the last traded value of Alphabet","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oFinancialMarket.\"HASNAME\" AS oFinancialMarket_hasName, FinancialInstrument1.\"ISTRANSFERABLE\" AS oSecurity_isTransferable FROM FIBEN.\"SECURITY\" oSecurity INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecurity.\"SECURITYID\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON oSecurity.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALINSTRUMENT\" FinancialInstrument1 ON oSecurity.\"SECURITYID\"=FinancialInstrument1.\"FINANCIALINSTRUMENTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":23,"question":" show me some stocks with a last traded value Equal or greater than 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" >= 1500.0","queryType":"non-nested"},{"uniqueQueryID":64,"question":" How many shares of IBM were purchased Between January and November 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-11-30 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":65,"question":" How many shares of Microsoft did people purchase","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Microsoft' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":28,"question":" By company, what are the number of stock purchases of it in 2015?","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" ListedSecurity1 ON oSecuritiesTransaction.\"REFERSTO\"=ListedSecurity1.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON ListedSecurity1.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2015-12-31 23:59:00.000' GROUP BY oCorporation.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":66,"question":" find stock ticker symbols with last traded value No less than 1500 in NASDAQ","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' AND oMonetaryAmount.\"HASAMOUNT\" < 1500.0 AND oMonetaryAmount.\"HASAMOUNT\" >= 1500","queryType":"non-nested"},{"uniqueQueryID":67,"question":" give me those stocks with last traded value Less than or equal to 1","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1 AND oMonetaryAmount.\"HASAMOUNT\" <= 1.0","queryType":"non-nested"},{"uniqueQueryID":68,"question":" how many stocks had a last traded value Less than 30","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 30.0","queryType":"non-nested"},{"uniqueQueryID":69,"question":" how many of the NASDAQ stocks has a last traded value Equal to 7","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oFinancialMarket.\"HASNAME\" AS oFinancialMarket_hasName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" oSecurity ON oListedSecurity.\"LISTEDSECURITYID\"=oSecurity.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON oSecurity.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NASDAQ' AND oMonetaryAmount.\"HASAMOUNT\" = 7.0","queryType":"non-nested"},{"uniqueQueryID":70,"question":" Which account managers have more than 1000 accounts?","isParaphrased":false,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS Count_oFinancialServiceAccount_hasAccountNumber, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" HAVING Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") > 1000.0","queryType":"non-nested"},{"uniqueQueryID":71,"question":" What is highest last traded value reported in NYSE","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":71,"question":" highest last traded value in NYSE","isParaphrased":true,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":72,"question":" Find all transaction on IBM stocks in 2018","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"='IBM' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-03-31 23:59:00.000'","queryType":"non-nested"},{"uniqueQueryID":73,"question":" What is the name of the client that bought Citigroup stock more than 2 times","isParaphrased":false,"SQL":" SELECT Count(oSecuritiesTransaction.\"HASTYPE\") AS Count_oSecuritiesTransaction_hasType, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Count(oSecuritiesTransaction.\"HASTYPE\") > 2","queryType":"non-nested"},{"uniqueQueryID":74,"question":" How many shares of IBM were purchased Between Before 19 January 2016","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '1900-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-01-18 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":75,"question":" show me quarterly revenues for all companies in 2017","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2017' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2017'","queryType":"non-nested"},{"uniqueQueryID":76,"question":" What is the last traded value for Alphabet?","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oFinancialMarket.\"HASNAME\" AS oFinancialMarket_hasName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" oSecurity ON oListedSecurity.\"LISTEDSECURITYID\"=oSecurity.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON oSecurity.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":76,"question":" For alphabet, what is the last traded value","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oFinancialMarket.\"HASNAME\" AS oFinancialMarket_hasName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" oSecurity ON oListedSecurity.\"LISTEDSECURITYID\"=oSecurity.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON oSecurity.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":28,"question":" For each company, what are the number of stock purchases of it in 2015?","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" ListedSecurity1 ON oSecuritiesTransaction.\"REFERSTO\"=ListedSecurity1.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON ListedSecurity1.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2015-12-31 23:59:00.000' GROUP BY oCorporation.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":6,"question":" what are the stocks with last traded value That exceeds 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":22,"question":" Who is the person with the most number of accounts?","isParaphrased":true,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":50,"question":" In which state does Luis Statz live","isParaphrased":true,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON Address1.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":28,"question":" What are the number of stock purchases of each company in 2015?","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" ListedSecurity1 ON oSecuritiesTransaction.\"REFERSTO\"=ListedSecurity1.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON ListedSecurity1.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2015-12-31 23:59:00.000' GROUP BY oCorporation.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":77,"question":" How many accounts does Yue Gorn manage","isParaphrased":false,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1 FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" = 'Yue Gorn' FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":78,"question":" What is the name of the client that bought Citigroup stock more than twice","isParaphrased":false,"SQL":" SELECT Count(oSecuritiesTransaction.\"HASTYPE\") AS Count_oSecuritiesTransaction_hasType, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Count(oSecuritiesTransaction.\"HASTYPE\") > 2 FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":79,"question":" What all positions have Yakov Lugannani held at Synopsys","isParaphrased":false,"SQL":" SELECT oContract.\"HASEXPIRATIONDATE\" AS oContract_hasExpirationDate, oContract.\"HASEFFECTIVEDATE\" AS oContract_hasEffectiveDate, oContract.\"HASTITLE\" AS oContract_hasTitle, oContract.\"HASPOSITION\" AS oContract_hasPosition FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oContractParty ON oContract.\"HASCONTRACTPARTY\"=oContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON oContractParty.\"CONTRACTPARTYID\"=Person1.\"PERSONID\" WHERE Person1.\"HASPERSONNAME\" = 'Yakov Lugannani' AND oCorporation.\"HASLEGALNAME\" = 'Synopsys'","queryType":"non-nested"},{"uniqueQueryID":23,"question":" get the stock symbols having a last traded value Equal to or greater than 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" >= 1500.0","queryType":"non-nested"},{"uniqueQueryID":80,"question":" Show me the transactions for IBM with price more than 5000","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 5000.0 AND oListedSecurity.\"HASTICKERSYMBOL\" = 'IBM'","queryType":"non-nested"},{"uniqueQueryID":81,"question":" for each stock, what is the highest last traded value recorded in NYSE","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oFinancialMarket.\"HASNAME\" = 'NYSE' GROUP BY oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":82,"question":" In how many states does Luis Statz live","isParaphrased":false,"SQL":" SELECT Count(oPostalAddress.\"HASSTATE\") AS AggResult1 FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Address1.\"ISINDEXTO\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":83,"question":" Show me the stock if its last traded value is higher than 1500","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0 FETCH FIRST 1000 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":84,"question":" For each stock tell me the minimum last traded value","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":85,"question":" what is the number of stocks with last traded value Less than 1","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1 AND oMonetaryAmount.\"HASAMOUNT\" < 1.0","queryType":"non-nested"},{"uniqueQueryID":22,"question":" What person has the most number of accounts","isParaphrased":true,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":86,"question":" find the highest last traded value of Alphabet in NYSE","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oFinancialMarket.\"HASNAME\" = 'NYSE' ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":87,"question":" Show me the stock which has its last traded value equal to 7","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\"=7","queryType":"non-nested"},{"uniqueQueryID":22,"question":" What is the person with the most number of accounts","isParaphrased":true,"SQL":" SELECT Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\" ORDER BY AggResult1 DESC FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":88,"question":" What is Nam Davarian\u2019s postal addresses?","isParaphrased":false,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Address1.\"ISINDEXTO\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASLASTNAME\" = 'Davarian' AND oPerson.\"HASFIRSTNAME\" = 'Nam'","queryType":"non-nested"},{"uniqueQueryID":89,"question":" What price did Luis Statz sell DFRG","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'DFRG' AND oPerson.\"HASFIRSTNAME\" = 'Luis' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":90,"question":" When did Hakon Schuster purchase Adobe Systems stock","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASLASTNAME\" = 'Schuster' AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASFIRSTNAME\" = 'Hakon' AND oListedSecurity.\"HASLEGALNAME\" = 'Adobe'","queryType":"non-nested"},{"uniqueQueryID":6,"question":" list stocks and the ticker symbols last traded value Above 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":6,"question":" Which stock has a last traded value higher than 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":91,"question":" Show me quarterly revenues for Microsoft in 2017 ?","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'Microsoft' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2017' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2017'","queryType":"non-nested"},{"uniqueQueryID":92,"question":" For each company, what are the number of stock purchases of it in 2016.","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" ListedSecurity1 ON oSecuritiesTransaction.\"REFERSTO\"=ListedSecurity1.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON ListedSecurity1.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' GROUP BY oCorporation.\"HASLEGALNAME\"","queryType":"non-nested"},{"uniqueQueryID":6,"question":" give me those stocks with last traded value Bigger than 1500","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 1500.0","queryType":"non-nested"},{"uniqueQueryID":93,"question":" what was highest last traded value of IBM stocks ?","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation'","queryType":"non-nested"},{"uniqueQueryID":50,"question":" What is the state that Luis Statz lives in","isParaphrased":true,"SQL":" SELECT oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState, oPostalAddress.\"HASADDRESSLINE2\" AS oPostalAddress_hasAddressLine2, oPostalAddress.\"HASADDRESSLINE1\" AS oPostalAddress_hasAddressLine1, oPostalAddress.\"HASPOSTALCODE\" AS oPostalAddress_hasPostalCode, oPostalAddress.\"HASCITY\" AS oPostalAddress_hasCity FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"ADDRESS\" Address1 ON oPostalAddress.\"POSTALADDRESSID\"=Address1.\"POSTALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON Address1.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASFIRSTNAME\" = 'Luis' AND oPerson.\"HASLASTNAME\" = 'Statz'","queryType":"non-nested"},{"uniqueQueryID":43,"question":" retieve the ticker symbols of stocks with last traded value No more than 1","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" <= 1.0","queryType":"non-nested"},{"uniqueQueryID":94,"question":" For stocks with a last traded value less than 100, what was highest last traded value","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 100 AND oMonetaryAmount.\"HASAMOUNT\" < 100.0","queryType":"non-nested"},{"uniqueQueryID":95,"question":" tell me Alphabet's biggest last traded value","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.'","queryType":"non-nested"},{"uniqueQueryID":96,"question":" count of stocks reporting last traded value Lesser than 1 in NYSE","isParaphrased":false,"SQL":" SELECT Count(oListedSecurity.\"HASLEGALNAME\") AS AggResult1 FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oFinancialMarket ON Security1.\"ISTRADEDON\"=oFinancialMarket.\"FINANCIALMARKETID\" WHERE oMonetaryAmount.\"HASAMOUNT\" < 1.0 AND oFinancialMarket.\"HASNAME\" = 'NYSE'","queryType":"non-nested"},{"uniqueQueryID":97,"question":" How have IBM's revenues evolved in the last 5 years?","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oFinancialReport.\"HASUNIQUEIDENTIFIER\" AS oFinancialReport_hasUniqueIdentifier, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" oFinancialReport ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=oFinancialReport.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oFinancialReport.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2015' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' ORDER BY oFinancialReport.\"HASUNIQUEIDENTIFIER\"","queryType":"non-nested"},{"uniqueQueryID":98,"question":" find me an investor id whose holding is worth the most value?","isParaphrased":false,"SQL":" SELECT oHolding.ISHELDBY AS oHolding_ISHELDBY, SUM(oHolding.HASCOUNT * oListedSecurity.HASLASTTRADEDVALUE) AS AggResult1 FROM HOLDING oHolding INNER JOIN LISTEDSECURITY oListedSecurity ON oHOLDING.REFERSTO = oListedSecurity.LISTEDSECURITYID GROUP BY oHolding.ISHELDBY ORDER BY SUM(oHolding.HASCOUNT * oListedSecurity.HASLASTTRADEDVALUE) FETCH FIRST 1 ROWS ONLY","queryType":"non-nested"},{"uniqueQueryID":99,"question":" who bought IBM stocks in every consecutive 3 months in 2019 ?","isParaphrased":false,"SQL":" SELECT oPerson_hasPersonName, tickerSymbol, sDate FROM (SELECT a.*, max(monthnum) over (partition by oPerson_personID, groupnum) as lastmonth, min(monthnum) over (partition by oPerson_personID, groupnum) as firstmonth FROM (SELECT a.*, monthnum - dense_rank() over (partition by oPerson_personID order by monthnum) as groupnum FROM (SELECT oPerson.PERSONID AS oPerson_personID, oPerson.HASPERSONNAME AS oPerson_hasPersonName, oListedSecurity.HASTICKERSYMBOL AS tickerSymbol, oSecuritiesTransaction.HASSETTLEMENTDATE AS sDate, month(oSecuritiesTransaction.HASSETTLEMENTDATE) as monthnum FROM SECURITIESTRANSACTION oSecuritiesTransaction INNER JOIN LISTEDSECURITY oListedSecurity ON oSecuritiesTransaction.REFERSTO=oListedSecurity.LISTEDSECURITYID INNER JOIN FINANCIALSERVICEACCOUNT oFinancialServiceAccount ON oSecuritiesTransaction.ISFACILITATEDBY=oFinancialServiceAccount.FINANCIALSERVICEACCOUNTID INNER JOIN PERSON oPerson ON oFinancialServiceAccount.ISOWNEDBY=oPerson.PERSONID WHERE oSecuritiesTransaction.HASTYPE = '1' AND oSecuritiesTransaction.HASSETTLEMENTDATE BETWEEN '2016-01-01 00:00:00.000' AND '2016-12-31 23:59:00.000') a) a) a WHERE lastmonth - firstmonth >= 2","queryType":"non-nested"},{"uniqueQueryID":100,"question":" find accounts managed by Yue Gorn and Alin Shindo","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oPERSON.\"HASPERSONNAME\" IN ('Alin Shindo', 'Yue Gorn')","queryType":"non-nested"},{"uniqueQueryID":101,"question":" Give me the list of account managers from Texas and California","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState FROM FIBEN.\"ADDRESS\" Address1 INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON Address1.\"POSTALADDRESS\"=oPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Address1.\"ISINDEXTO\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISMANAGEDBY\" WHERE oPostalAddress.\"HASSTATE\" IN ('California', 'Texas' )","queryType":"non-nested"},{"uniqueQueryID":102,"question":" which customers are from Michigan and California","isParaphrased":false,"SQL":" SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oPostalAddress.\"HASSTATE\" AS oPostalAddress_hasState FROM FIBEN.\"ADDRESS\" Address1 INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON Address1.\"POSTALADDRESS\"=oPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Address1.\"ISINDEXTO\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISOWNEDBY\" WHERE oPostalAddress.\"HASSTATE\" IN ('Michigan', 'California' )","queryType":"non-nested"},{"uniqueQueryID":103,"question":"Name the companies from Mining and Services industry","isParaphrased":false,"SQL":" SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oIndustrySectorClassifier.\"HASNUMERICCODE\" AS oIndustrySectorClassifier_hasNumericCode, oIndustrySectorClassifier.\"HASUNIQUEIDENTIFIER\" AS oIndustrySectorClassifier_hasUniqueIdentifier, oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oIndustrySectorClassifier.\"HASDESCRIPTION\" AS oIndustrySectorClassifier_hasDescription FROM FIBEN.\"CORPORATION\" oCorporation INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" IN ('Mining', 'Services')","queryType":"non-nested"},{"uniqueQueryID":103,"question":"show me the companies which are in Mining and Services industry","isParaphrased":true,"SQL":" SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oIndustrySectorClassifier.\"HASNUMERICCODE\" AS oIndustrySectorClassifier_hasNumericCode, oIndustrySectorClassifier.\"HASUNIQUEIDENTIFIER\" AS oIndustrySectorClassifier_hasUniqueIdentifier, oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oIndustrySectorClassifier.\"HASDESCRIPTION\" AS oIndustrySectorClassifier_hasDescription FROM FIBEN.\"CORPORATION\" oCorporation INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" IN ('Mining', 'Services')","queryType":"non-nested"},{"uniqueQueryID":104,"question":"Show me officers from IBM and Microsoft","isParaphrased":false,"SQL":" SELECT oContract.\"HASEXPIRATIONDATE\" AS oContract_hasExpirationDate, oContract.\"HASEFFECTIVEDATE\" AS oContract_hasEffectiveDate, oContract.\"HASTITLE\" AS oContract_hasTitle, oContract.\"HASPOSITION\" AS oContract_hasPosition, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oCorporation.\"HASLEGALNAME\" IN ('Microsoft', 'International Business Machines Corporation' ) AND oContract.\"HASPOSITION\" = 'Officer'","queryType":"non-nested"},{"uniqueQueryID":105,"question":"list all transactions on IBM and Alphabet stocks in 2018","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" IN ('Alphabet Inc.', 'International Business Machines Corporation' ) AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000'","queryType":"non-nested"},{"uniqueQueryID":105,"question":" retrieve all stock transactions on IBM and Alphabet from 2018","isParaphrased":true,"SQL":" SELECT oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" IN ('Alphabet Inc.', 'International Business Machines Corporation' ) AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000'","queryType":"non-nested"},{"uniqueQueryID":106,"question":"give me all transactions done by Aad Heyker and Aashu Linzer","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASPERSONNAME\" IN ('Aad Heyker' , 'Aashu Linzer')","queryType":"non-nested"},{"uniqueQueryID":107,"question":" find all customers who are not managing any accounts","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" NOT IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" )","queryType":"Type-n"},{"uniqueQueryID":108,"question":" which companies are in a different industry than Microsoft","isParaphrased":false,"SQL":" SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName FROM FIBEN.\"CORPORATION\" oCorporation INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" NOT IN (SELECT oInnerIndustrySectorClassifier.\"HASFORMALNAME\" AS oInnerIndustrySectorClassifier_hasFormalName FROM FIBEN.\"CORPORATION\" oInnerCorporation INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oInnerIndustrySectorClassifier ON oInnerCorporation.\"ISCLASSIFIEDBY\"=oInnerIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oInnerCorporation.\"HASLEGALNAME\" = 'Microsoft')","queryType":"Type-n"},{"uniqueQueryID":109,"question":"Find all customers who have not bought Alphabet stocks in 2019","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" NOT IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":110,"question":" Find all account owners who have not made any transaction in 2019","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" NOT IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":111,"question":"Which account owners are also account managers","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\" IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" )","queryType":"Type-n"},{"uniqueQueryID":112,"question":" List all executive in IBM with director position in Services industry","isParaphrased":false,"SQL":"SELECT Person1.\"HASPERSONNAME\" AS oContractParty_hasPersonName, oContract.\"HASEXPIRATIONDATE\" AS oContract_hasExpirationDate, oContract.\"HASEFFECTIVEDATE\" AS oContract_hasEffectiveDate, oContract.\"HASTITLE\" AS oContract_hasTitle, oContract.\"HASPOSITION\" AS oContract_hasPosition, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oContractParty ON oContract.\"HASCONTRACTPARTY\"=oContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON oContractParty.\"CONTRACTPARTYID\"=Person1.\"PERSONID\" WHERE oCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND Person1.\"HASPERSONNAME\" IN (SELECT innerPerson1.\"HASPERSONNAME\" AS oInnerContractParty_hasPersonName FROM FIBEN.\"CONTRACTPARTY\" oInnerContractParty INNER JOIN FIBEN.\"CONTRACT\" oInnerContract ON oInnerContractParty.\"CONTRACTPARTYID\"=oInnerContract.\"HASCONTRACTPARTY\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oInnerIndustrySectorClassifier ON oInnerCorporation.\"ISCLASSIFIEDBY\"=oInnerIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE oInnerContract.\"HASPOSITION\" = 'Director' AND oInnerIndustrySectorClassifier.\"HASFORMALNAME\" = 'Services')","queryType":"Type-n"},{"uniqueQueryID":113,"question":" List all securities having higher traded value than ADBE","isParaphrased":false,"SQL":"SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"SECURITY\" oInnerSecurity ON oInnerListedSecurity.\"LISTEDSECURITYID\"=oInnerSecurity.\"SECURITYID\" INNER JOIN FIBEN.\"FINANCIALMARKET\" oInnerFinancialMarket ON oInnerSecurity.\"ISTRADEDON\"=oInnerFinancialMarket.\"FINANCIALMARKETID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'ADBE')","queryType":"Type-n"},{"uniqueQueryID":114,"question":" Who holds the same stocks as Samual Sensen","isParaphrased":false,"SQL":"SELECT oHolding.\"HASCOUNT\" AS oHolding_hasCount, oHolding.\"HASDESCRIPTION\" AS oHolding_hasDescription, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oHolding.\"ISHELDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerHolding.\"ISHELDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerPerson.\"HASPERSONNAME\" = 'Samual Sensen')","queryType":"Type-n"},{"uniqueQueryID":115,"question":" who bought same stocks as Koji Lucas","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas')","queryType":"Type-n"},{"uniqueQueryID":116,"question":" who bought stocks same as Koji Lucas bought in 2016?","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas' AND oInnerSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":117,"question":" who sold the same stocks as Koji Lucas in 2016","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas' AND oInnerSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":118,"question":" who bought the same stocks as Koji Lucas sold in 2016","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas' AND oInnerSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":119,"question":" who bought the same stocks in 2017 that Koji Lucas sold in 2016","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.hasSettlementDate >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.hasSettlementDate <= '2017-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas' AND oInnerSecuritiesTransaction.hasSettlementDate >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.hasSettlementDate <= '2016-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":120,"question":" which stocks are bought by Mac Eliens which are not bought by Koji Lucas","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASPERSONNAME\" = 'Mac Eliens' AND oListedSecurity.\"HASLEGALNAME\" NOT IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas')","queryType":"Type-n"},{"uniqueQueryID":121,"question":" find those stocks bought by Mac Eliens but not by Koji Lucas","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName,oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASPERSONNAME\" = 'Mac Eliens' AND oListedSecurity.\"HASLEGALNAME\" NOT IN (SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Koji Lucas')","queryType":"Type-n"},{"uniqueQueryID":122,"question":" which stocks has average transaction value more than 100 in 2019 but was not bought by Mac Eliens","isParaphrased":false,"SQL":" SELECT Avg(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" NOT IN(SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Mac Eliens') GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Avg(oMonetaryAmount.\"HASAMOUNT\") > 100.0","queryType":"Type-n"},{"uniqueQueryID":123,"question":"find the stocks which had lowest transaction value more than 100 between 2016 and 2018 but was sold by Mac Eliens","isParaphrased":false,"SQL":"SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oListedSecurity.\"HASLEGALNAME\" NOT IN(SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerPerson.\"HASPERSONNAME\" = 'Mac Eliens') GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") > 100.0","queryType":"Type-n"},{"uniqueQueryID":124,"question":" find all customers who did not buy any Alphabet stock in 2019","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"PERSON\" oPerson INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" AND oPerson.\"HASPERSONNAME\" NOT IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":125,"question":" Find all investors not holding MSFT stocks","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"PERSON\" oPerson INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" AND oPerson.\"HASPERSONNAME\" NOT IN (SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerHolding.\"ISHELDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT')","queryType":"Type-n"},{"uniqueQueryID":126,"question":"find all investors who have not bought any stocks in last 2 years","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"PERSON\" oPerson INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" AND oPerson.\"HASPERSONNAME\" NOT IN (SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000')","queryType":"Type-n"},{"uniqueQueryID":127,"question":" which investors have bought stocks of IBM or sold stocks of Microsoft in last 3 years","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASTICKERSYMBOL\" = 'IBM' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' UNION SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.hasLegalName = 'Microsoft' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000'","queryType":"Type-n"},{"uniqueQueryID":128,"question":" Find all stocks having last traded value more than 120 or average purchase value more than 100 in 2016","isParaphrased":false,"SQL":"SELECT oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oMonetaryAmount.\"HASAMOUNT\" > 120.0 union SELECT oInnerListedSecurity.\"HASLEGALNAME\" AS oInnerListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' GROUP BY oInnerListedSecurity.\"HASLEGALNAME\" HAVING Avg(oInnerMonetaryAmount.\"HASAMOUNT\") > 100.0","queryType":"Type-n"},{"uniqueQueryID":129,"question":" Find name of all customers residing in California or holding stocks in IBM","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"ADDRESS\" oAddress INNER JOIN FIBEN.\"POSTALADDRESS\" oPostalAddress ON oAddress.\"POSTALADDRESS\"=oPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oAutonomousAgent ON oAddress.\"ISINDEXTO\"=oAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oAutonomousAgent.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISOWNEDBY\" WHERE oPostalAddress.\"HASSTATE\" = 'California' UNION SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerHolding.\"ISHELDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'IBM'","queryType":"Type-n"},{"uniqueQueryID":130,"question":" Show me email address of customers from Texas or customers who are executives of Alphabet since 2011","isParaphrased":false,"SQL":"SELECT oEmailAddress.\"HASVALUE\" AS oEmailAddress_hasValue FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"COUNTRY\" Country1 ON oPostalAddress.\"HASCOUNTRY\"=Country1.\"COUNTRYID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON Country1.\"COUNTRYID\"=oPerson.\"HASPLACEOFBIRTH\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON oPerson.\"PERSONID\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"ADDRESS\" Address1 ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=Address1.\"ISINDEXTO\" INNER JOIN FIBEN.\"VIRTUALADDRESS\" VirtualAddress1 ON Address1.\"VIRTUALADDRESS\"=VirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"EMAILADDRESS\" oEmailAddress ON VirtualAddress1.\"VIRTUALADDRESSID\"=oEmailAddress.\"EMAILADDRESSID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISOWNEDBY\" WHERE oPostalAddress.\"HASSTATE\" = 'Texas' UNION SELECT oInnerEmailAddress.\"HASVALUE\" AS oInnerEmailAddress_hasValue FROM FIBEN.\"EMAILADDRESS\" oInnerEmailAddress INNER JOIN FIBEN.\"VIRTUALADDRESS\" innerVirtualAddress1 ON oInnerEmailAddress.\"EMAILADDRESSID\"=innerVirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"ADDRESS\" innerAddress1 ON innerVirtualAddress1.\"VIRTUALADDRESSID\"=innerAddress1.\"VIRTUALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" innerAutonomousAgent1 ON innerAddress1.\"ISINDEXTO\"=innerAutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerAutonomousAgent1.\"AUTONOMOUSAGENTID\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"CONTRACT\" oInnerContract ON oInnerCorporation.\"CORPORATIONID\"=oInnerContract.\"ISMANAGEDBY\" INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE oInnerCorporation.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerContract.\"HASEFFECTIVEDATE\" >= '2011-01-01 00:00:00.000' AND oInnerContract.\"HASEFFECTIVEDATE\" <= '2100-12-31 00:00:00.000'","queryType":"Type-n"},{"uniqueQueryID":131,"question":" Which investors have sold IBM stocks in 2018 or holding stocks of IBM","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASTICKERSYMBOL\" = 'IBM' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' UNION SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerHolding.\"ISHELDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'IBM'","queryType":"Type-n"},{"uniqueQueryID":132,"question":" find the customers who are from California or are from Canada","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"POSTALADDRESS\" oPostalAddress INNER JOIN FIBEN.\"COUNTRY\" oCountry ON oPostalAddress.\"HASCOUNTRY\"=oCountry.\"COUNTRYID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oCountry.\"COUNTRYID\"=oPerson.\"HASPLACEOFBIRTH\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISOWNEDBY\" WHERE oPostalAddress.\"HASSTATE\" = 'California' UNION SELECT oInnerPerson.\"HASPERSONNAME\" AS oInnerPerson_hasPersonName FROM FIBEN.\"POSTALADDRESS\" oInnerPostalAddress INNER JOIN FIBEN.\"COUNTRY\" oInnerCountry ON oInnerPostalAddress.\"HASCOUNTRY\"=oInnerCountry.\"COUNTRYID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerCountry.\"COUNTRYID\"=oInnerPerson.\"HASPLACEOFBIRTH\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerPerson.\"PERSONID\"=oInnerFinancialServiceAccount.\"ISOWNEDBY\" WHERE oInnerCountry.\"HASNAME\" = 'Canada'","queryType":"Type-n"},{"uniqueQueryID":133,"question":" find the email address of investors who hold stocks of ADBE or are executives of Microsoft in 2019","isParaphrased":false,"SQL":" SELECT oEmailAddress.\"HASVALUE\" AS oEmailAddress_hasValue FROM FIBEN.\"EMAILADDRESS\" oEmailAddress INNER JOIN FIBEN.\"VIRTUALADDRESS\" VirtualAddress1 ON oEmailAddress.\"EMAILADDRESSID\"=VirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"ADDRESS\" Address1 ON VirtualAddress1.\"VIRTUALADDRESSID\"=Address1.\"VIRTUALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Address1.\"ISINDEXTO\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oPerson.\"PERSONID\"=oFinancialServiceAccount.\"ISOWNEDBY\" INNER JOIN FIBEN.\"HOLDING\" oHolding ON oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\"=oHolding.\"ISHELDBY\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'ADBE' UNION SELECT oInnerEmailAddress.\"HASVALUE\" AS oInnerEmailAddress_hasValue FROM FIBEN.\"EMAILADDRESS\" oInnerEmailAddress INNER JOIN FIBEN.\"VIRTUALADDRESS\" innerVirtualAddress1 ON oInnerEmailAddress.\"EMAILADDRESSID\"=innerVirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"ADDRESS\" innerAddress1 ON innerVirtualAddress1.\"VIRTUALADDRESSID\"=innerAddress1.\"VIRTUALADDRESS\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" innerAutonomousAgent1 ON innerAddress1.\"ISINDEXTO\"=innerAutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerAutonomousAgent1.\"AUTONOMOUSAGENTID\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"CONTRACT\" oInnerContract ON oInnerCorporation.\"CORPORATIONID\"=oInnerContract.\"ISMANAGEDBY\" INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE oInnerCorporation.\"HASLEGALNAME\" = 'Microsoft' AND oInnerContract.\"HASEFFECTIVEDATE\" >= '2019-01-01 00:00:00.000' AND oInnerContract.\"HASEFFECTIVEDATE\" <= '2019-12-31 00:00:00.000'","queryType":"Type-n"},{"uniqueQueryID":134,"question":" show me all IBM officer appointments in the same year as Prakash Strater's appointment as officer.","isParaphrased":false,"SQL":" SELECT Person1.\"HASPERSONNAME\" AS oContractParty_hasPersonName, oContract.\"HASEXPIRATIONDATE\" AS oContract_hasExpirationDate, oContract.\"HASEFFECTIVEDATE\" AS oContract_hasEffectiveDate, oContract.\"HASTITLE\" AS oContract_hasTitle, oContract.\"HASPOSITION\" AS oContract_hasPosition FROM FIBEN.\"CONTRACT\" oContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oContractParty ON oContract.\"HASCONTRACTPARTY\"=oContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON oContract.\"ISMANAGEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON oContractParty.\"CONTRACTPARTYID\"=Person1.\"PERSONID\" WHERE oContract.\"HASPOSITION\" = 'Officer' AND oCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND year(oContract.\"HASEFFECTIVEDATE\") = (SELECT year(oInnerContract.\"HASEFFECTIVEDATE\") FROM FIBEN.\"CONTRACT\" oInnerContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE oInnerContract.\"HASPOSITION\" = 'Officer' AND oInnerCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND innerPerson1.\"HASPERSONNAME\" = 'Prakash Strater')","queryType":"Type-n"},{"uniqueQueryID":135,"question":"What is the number of Companies generating average revenues more than 1 million in 2016","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2016' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E6)","queryType":"type-a"},{"uniqueQueryID":135,"question":" How many corporations generated average revenues more than 1 million in 2016","isParaphrased":true,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2016' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E6)","queryType":"type-a"},{"uniqueQueryID":136,"question":" What is the count of companies with average revenues more than 1 million in 2016","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2016' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E6","queryType":"type-a"},{"uniqueQueryID":137,"question":" how many companies incurred average expenses more than 100000 in 2015","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oExpense INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oExpense.\"EXPENSEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E5)","queryType":"type-a"},{"uniqueQueryID":137,"question":" give me the count of companies with average expenses exceeding 100000 in 2015","isParaphrased":true,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oExpense INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oExpense.\"EXPENSEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E5)","queryType":"type-a"},{"uniqueQueryID":138,"question":" How many corporations reported minimum quarterly expenses below 100000 in past 5 years","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oExpense INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oExpense.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2015' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(oElementOfFinancialStatement.\"HASMETRICVALUE\") < 1.0E5)","queryType":"type-a"},{"uniqueQueryID":138,"question":" How many companies had lowest quarterly expenses below 100000 in past 5 years","isParaphrased":true,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oExpense INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oExpense.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2015' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(oElementOfFinancialStatement.\"HASMETRICVALUE\") < 1.0E5)","queryType":"type-a"},{"uniqueQueryID":139,"question":" Count of companies whose highest quarterly expenses stayed lower than 100000 since 2016","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oExpense INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oExpense.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2016' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(oElementOfFinancialStatement.\"HASMETRICVALUE\") < 1.0E5)","queryType":"type-a"},{"uniqueQueryID":140,"question":" what is the number of corporations which reported a total revenue of more than 1 billion since 2015","isParaphrased":false,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Sum(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E9)","queryType":"type-a"},{"uniqueQueryID":140,"question":" give me the count of companies whose total revenue since 2015 exceeded 1 billion","isParaphrased":true,"SQL":" SELECT Count(oOuterCorporation.\"HASLEGALNAME\") FROM FIBEN.\"CORPORATION\" oOuterCorporation WHERE oOuterCorporation.\"HASLEGALNAME\" IN (SELECT oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Sum(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > 1.0E9)","queryType":"type-a"},{"uniqueQueryID":141,"question":" Show me stock purchases of Alphabet for price less than Alphabet's average buying price","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' )","queryType":"type-a"},{"uniqueQueryID":141,"question":" what are Alphabet stock purchases with price below the average purchase price of Alphabet","isParaphrased":true,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' )","queryType":"type-a"},{"uniqueQueryID":142,"question":" which stock purchases of Alphabet with higher price than average purchase price of Alphabet in last 3 years","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":143,"question":" show me transactions on Alphabet stock with price more than the average buying price of Alphabet between 2018 and 2019","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":144,"question":" show me transactions on IBM stock with price more than the average buying price of Alphabet since 2017","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":144,"question":" Which of IBM stock transactions had price more than the average buying price of Alphabet since 2017","isParaphrased":true,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":145,"question":" Find all stock transactions had price more than the minimum buying price of Alphabet in 2019","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":145,"question":" Give only those stocks which had a transaction price more than the minimum buying price of Alphabet in 2019","isParaphrased":true,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":146,"question":" what are some stocks which had a transaction price this year less than the minimum transaction price last year","isParaphrased":false,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":146,"question":" List the stocks which had a lower transaction price this year than the minimum transaction price last year","isParaphrased":true,"SQL":" SELECT oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":147,"question":" Show me stocks having highest last traded value","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" as oListedSecurity_HASLEGALNAME FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Max(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\")","queryType":"type-a"},{"uniqueQueryID":147,"question":" Which stocks are having the having maximum last traded value","isParaphrased":true,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" as oListedSecurity_HASLEGALNAME FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Max(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\")","queryType":"type-a"},{"uniqueQueryID":148,"question":" Find ticker symbols of stocks which are having the lowest last traded value","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" as oListedSecurity_HASTICKERSYMBOL FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\")","queryType":"type-a"},{"uniqueQueryID":149,"question":" give me the name and ticker symbols of stocks which are having the lowest last traded value","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" as oListedSecurity_HASLEGALNAME, oListedSecurity.\"HASTICKERSYMBOL\" as oListedSecurity_HASTICKERSYMBOL FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oListedSecurity.\"HASLASTTRADEDVALUE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" GROUP BY oListedSecurity.\"HASTICKERSYMBOL\", oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\")","queryType":"type-a"},{"uniqueQueryID":150,"question":" find name and tickersymbol of stocks with highest transaction price","isParaphrased":false,"SQL":"SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Max(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\")","queryType":"type-a"},{"uniqueQueryID":151,"question":" find tickersymbol of stocks with highest transaction price of purchase in 2018","isParaphrased":false,"SQL":"SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" HAVING Max(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":152,"question":" find stocks with lowest transaction price of purchase between 2018 and 2019","isParaphrased":false,"SQL":"SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":153,"question":" which stock had the lowest buying price between 2018 and 2019","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":154,"question":" which stock had the lowest selling price in last 3 years","isParaphrased":false,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":154,"question":" which stocks had been sold most cheap in last 3 years","isParaphrased":true,"SQL":" SELECT Min(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Min(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":155,"question":" find the most expensive stocks between 2015 and 2018","isParaphrased":false,"SQL":" SELECT Max(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oSecuritiesTransaction.\"HASTYPE\" = '1' GROUP BY oListedSecurity.\"HASLEGALNAME\" HAVING Max(oMonetaryAmount.\"HASAMOUNT\") = (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") AS Min_oInnerMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' )","queryType":"type-a"},{"uniqueQueryID":156,"question":" Who is holding more stocks than Aad Heyker","isParaphrased":false,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASPERSONNAME\" = 'Aad Heyker')","queryType":"type-a"},{"uniqueQueryID":157,"question":" Who is holding more Citigroup stocks than Aashu Linzer","isParaphrased":false,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASPERSONNAME\" = 'Aashu Linzer')","queryType":"type-a"},{"uniqueQueryID":157,"question":" Who is holding Citigroup stocks that is higher than Aashu Linzer","isParaphrased":true,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASPERSONNAME\" = 'Aashu Linzer')","queryType":"type-a"},{"uniqueQueryID":158,"question":" Show me investors holding less Citigroup stocks than Aad Heyker","isParaphrased":false,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Citigroup Inc.' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") < (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASPERSONNAME\" = 'Aad Heyker')","queryType":"type-a"},{"uniqueQueryID":159,"question":" how many investors have holding of total number of IBM stocks more than 1000","isParaphrased":false,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > 1000.0)","queryType":"type-a"},{"uniqueQueryID":159,"question":" how many account owners are holding a total number of IBM stocks above 1000","isParaphrased":true,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > 1000.0)","queryType":"type-a"},{"uniqueQueryID":160,"question":" how many account owners are holding number of stocks more than 1000","isParaphrased":false,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > 1000.0)","queryType":"type-a"},{"uniqueQueryID":161,"question":" how many account owners have a holding of total number of stocks below 100","isParaphrased":false,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") < 100.0)","queryType":"type-a"},{"uniqueQueryID":161,"question":" what is the count of investors who are holding total number of stocks less than 100","isParaphrased":true,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") < 100.0)","queryType":"type-a"},{"uniqueQueryID":162,"question":" what is number of investors whose holding has total number of stocks equal to 1000","isParaphrased":false,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN(SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\" HAVING Sum(oHolding.\"HASCOUNT\") = 1000.0)","queryType":"type-a"},{"uniqueQueryID":163,"question":" show me companies which reported highest yearly revenue in 2015","isParaphrased":false,"SQL":" SELECT Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") = (SELECT Max(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015')","queryType":"type-a"},{"uniqueQueryID":163,"question":" which corporations reported the highest yearly revenue in 2015","isParaphrased":true,"SQL":" SELECT Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") = (SELECT Max(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015')","queryType":"type-a"},{"uniqueQueryID":164,"question":" what are the companies with lowest revenue between 2016 and 2019","isParaphrased":false,"SQL":" SELECT Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") = (SELECT Min(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-a"},{"uniqueQueryID":164,"question":" List all corporations reporting lowest revenue between 2016 and 2019","isParaphrased":true,"SQL":" SELECT Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") = (SELECT Min(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-a"},{"uniqueQueryID":165,"question":" which companies reported lowest revenue in last 4 years which was more than the average revenue reported in 2015","isParaphrased":false,"SQL":" SELECT Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015')","queryType":"type-a"},{"uniqueQueryID":166,"question":" list all corporations whose lowest revenue in last 4 years was more than the average reported in 2015","isParaphrased":false,"SQL":" SELECT Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Min(ElementOfFinancialStatement1.\"HASMETRICVALUE\") > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015')","queryType":"type-a"},{"uniqueQueryID":167,"question":" which corporations reported highest revenue between 2016 and 2019 which was less than the average revenue reported in 2015","isParaphrased":false,"SQL":" SELECT Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") < (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2015' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2015')","queryType":"type-a"},{"uniqueQueryID":168,"question":" which corporations reported highest revenue between 2016 and 2019 less than Broadcom's minimum revenue reported in last 2 years","isParaphrased":false,"SQL":" SELECT Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") < (SELECT Min(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS oInnerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'Broadcom' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-a"},{"uniqueQueryID":168,"question":" which companies highest revenue in last 4 years was below Broadcom's lowest revenue in last 2 years","isParaphrased":true,"SQL":" SELECT Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Max(ElementOfFinancialStatement1.\"HASMETRICVALUE\") < (SELECT Min(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS oInnerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'Broadcom' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-a"},{"uniqueQueryID":169,"question":" which companies average revenue in last 5 years was below Adobe's average revenue since 2018","isParaphrased":false,"SQL":" SELECT Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") < (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS oInnerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'Adobe' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018')","queryType":"type-a"},{"uniqueQueryID":169,"question":" find companies whose average revenue over last 5 years is less than the average revenue Adobe reported since 2018","isParaphrased":true,"SQL":" SELECT Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") AS AggResult1, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' GROUP BY oCorporation.\"HASLEGALNAME\" HAVING Avg(ElementOfFinancialStatement1.\"HASMETRICVALUE\") < (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS oInnerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'Adobe' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018')","queryType":"type-a"},{"uniqueQueryID":170,"question":" find companies whose revenue in 2018 is less than the maximum revenue Delta Airlines reported in last 3 years","isParaphrased":false,"SQL":" SELECT ElementOfFinancialStatement1.\"HASMETRICVALUE\", oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2018' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" < (SELECT Max(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS oInnerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'DELTA AIR LINES INC' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-a"},{"uniqueQueryID":171,"question":" who sold IBM stocks with price more than the average selling price in 2017","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-12-31 23:59:00.000' ) AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-12-31 23:59:00.000'","queryType":"type-a"},{"uniqueQueryID":172,"question":" who sold IBM stocks in higher price than the average selling price in 2017","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-12-31 23:59:00.000' ) AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-12-31 23:59:00.000","queryType":"type-a"},{"uniqueQueryID":173,"question":" show all transaction in this year with price higher than the average selling price last year","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000')","queryType":"type-a"},{"uniqueQueryID":174,"question":" Who has bought total number of Alphabet stocks more than total number of Alphabet stocks bought by Susann Ramsak","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.PERSONID HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASFIRSTNAME\" = 'Susann' AND oInnerPerson.\"HASLASTNAME\" = 'Ramsak' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.')","queryType":"type-a"},{"uniqueQueryID":174,"question":" Who has bought more Alphabet stocks than Susann Ramsak","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.PERSONID HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASFIRSTNAME\" = 'Susann' AND oInnerPerson.\"HASLASTNAME\" = 'Ramsak' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.')","queryType":"type-a"},{"uniqueQueryID":175,"question":" Who has bought more Alphabet stocks in 2017 alone than Susann Ramsak in last 3 years","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2017-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2017-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\",oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.PERSONID HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS AggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerPerson.\"HASFIRSTNAME\" = 'Susann' AND oInnerPerson.\"HASLASTNAME\" = 'Ramsak' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000')","queryType":"type-a"},{"uniqueQueryID":176,"question":" How many persons has more than 1 account holding MSFT","isParaphrased":false,"SQL":" SELECT COUNT(oOuterPerson.\"HASPERSONNAME\") FROM FIBEN.\"PERSON\" oOuterPerson WHERE oOuterPerson.\"HASPERSONNAME\" IN (SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oHolding.\"ISHELDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Count(oFinancialServiceAccount.\"HASACCOUNTNUMBER\") > 1.0)","queryType":"type-a"},{"uniqueQueryID":177,"question":" show me all companies whose revenue in 2016 was more than IBM's average revenue between 2016 and 2020","isParaphrased":false,"SQL":" SELECT ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2016' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggresult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020')","queryType":"type-a"},{"uniqueQueryID":177,"question":" which companies reported more revenue in 2016 than IBM's average revenue between 2016 and 2020","isParaphrased":true,"SQL":" SELECT ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2016' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggresult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND oInnerCorporation.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2016' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020')","queryType":"type-a"},{"uniqueQueryID":178,"question":" Who sold Alphabet stocks 1 month after it had highest buying price in 2016","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' AND month(oSecuritiesTransaction.\"HASSETTLEMENTDATE\")+1 = (SELECT month(oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\") FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' ORDER BY oInnerMonetaryAmount.\"HASAMOUNT\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-a"},{"uniqueQueryID":179,"question":" Who sold IBM stocks 1 month after it had highest buying value in 2016","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASCOUNT\" AS oSecuritiesTransaction_hasCount FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' AND month(oSecuritiesTransaction.\"HASSETTLEMENTDATE\") = 1+ (SELECT month(oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\") FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation'AND oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-12-31 23:59:00.000' ORDER BY oInnerMonetaryAmount.\"HASAMOUNT\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-a"},{"uniqueQueryID":180,"question":" what all stocks have been bought in 2017 and sold in 2018 by same customers","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":180,"question":" find the stocks bought in 2017 and sold in 2018 by same account owners","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":181,"question":" who bought and sold same stocks in last 5 years","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":181,"question":" List account owners bought and sold same stocks since 2015","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":182,"question":" List account managers who bought and sold the same stock between 2015 and 2018","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":183,"question":" find all accounts that has been used to buy and sell the same stocks in 2019","isParaphrased":false,"SQL":" SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_HASACCOUNTNUMBER, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oFinancialServiceAccount.\"HASACCOUNTNUMBER\" = oInnerFinancialServiceAccount.\"HASACCOUNTNUMBER\" )","queryType":"type-j"},{"uniqueQueryID":183,"question":" List all financial service accounts used to buy and sell the same stocks in between Oct 2019 and Dec 2019","isParaphrased":true,"SQL":" SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_HASACCOUNTNUMBER, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-10-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oFinancialServiceAccount.\"HASACCOUNTNUMBER\" = oInnerFinancialServiceAccount.\"HASACCOUNTNUMBER\" )","queryType":"type-j"},{"uniqueQueryID":184,"question":" find account owners buying IBM in one account and sold it in another","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oFinancialServiceAccount.\"HASACCOUNTNUMBER\" NOT IN (SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-j"},{"uniqueQueryID":185,"question":" who bought and sold IBM through different accounts","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oFinancialServiceAccount.\"HASACCOUNTNUMBER\" NOT IN (SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-j"},{"uniqueQueryID":186,"question":" find account managers who bought IBM in one account and sold it in another","isParaphrased":false,"SQL":" SELECT oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oFinancialServiceAccount.\"HASACCOUNTNUMBER\" NOT IN (SELECT oFinancialServiceAccount.\"HASACCOUNTNUMBER\" AS oFinancialServiceAccount_hasAccountNumber FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-j"},{"uniqueQueryID":187,"question":" Who purchased stock in last year that has increased in value","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-04-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-06-30 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":188,"question":" Who purchased stock in last year that has dipped in value","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-04-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-06-30 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":189,"question":" Who purchased stock in 2nd quarter 2016 that has gone up in value","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-04-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-06-30 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":189,"question":" Find account owners who purchased stock in 2nd quarter 2016 that has increased in value","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-04-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-06-30 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":189,"question":" who bought stock between april 2016 and june 2016 that has grown in value","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-04-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2016-06-30 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":190,"question":" Who sold MSFT stock since 2015 that has increased in value","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\"= 'MSFT' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":191,"question":" Who sold MSFT stock in last 5 years that has gone up in value","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2015-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\"= 'MSFT' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":192,"question":" Who purchased IBM stock last year that has gone down value","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\"= 'IBM' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":192,"question":" Who purchased IBM stock in 2019 that has decreased in value","isParaphrased":true,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\"= 'IBM' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":193,"question":" Who bought any stock in last 3 years that has grown in value","isParaphrased":false,"SQL":"SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":194,"question":" Show me all the stocks sold where the price has increased by 50%","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" * 1.5 < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":195,"question":" Show me all the stocks sold where the price has decreased by 50%","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" > 0.5 * (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":196,"question":" Show me all the stocks sold where the price has gone up by 50$","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" + 50.0 < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":197,"question":" Show me all the stocks sold where the price has decreased by 50$","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" > 50.0 + (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":197,"question":" Show me all the stocks sold where the price has decreased by 50 dollar","isParaphrased":true,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oListedSecurity INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oListedSecurity.\"LISTEDSECURITYID\"=oSecuritiesTransaction.\"REFERSTO\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oMonetaryAmount.\"HASAMOUNT\" > 50.0 + (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":198,"question":" who sold stocks in 2018 and bought the same stocks back in 2019","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oFinancialServiceAccount ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=oFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON oFinancialServiceAccount.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" IN (SELECT oInnerListedSecurity.\"HASTICKERSYMBOL\" AS oInnerListedSecurity_hasTickerSymbol FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" oInnerFinancialServiceAccount ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=oInnerFinancialServiceAccount.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerFinancialServiceAccount.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-j"},{"uniqueQueryID":199,"question":" Who lives in a different country than their citizenship","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oCountry.\"HASNUMERICCOUNTRYCODE\" AS oCountry_hasNumericCountryCode, oCountry.\"HASNAME\" AS oCountry_hasName FROM FIBEN.\"PERSON\" oPerson INNER JOIN FIBEN.\"COUNTRY\" oCountry ON oPerson.\"HASCITIZENSHIP\"=oCountry.\"COUNTRYID\" WHERE oCountry.\"HASNAME\" NOT IN (SELECT oInnerCountry.\"HASNAME\" AS oInnerCountry_hasName FROM FIBEN.\"ADDRESS\" oInnerAddress INNER JOIN FIBEN.\"POSTALADDRESS\" oInnerPostalAddress ON oInnerAddress.\"POSTALADDRESS\"=oInnerPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oInnerAutonomousAgent ON oInnerAddress.\"ISINDEXTO\"=oInnerAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerAutonomousAgent.\"AUTONOMOUSAGENTID\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"COUNTRY\" oInnerCountry ON oInnerPostalAddress.\"HASCOUNTRY\"=oInnerCountry.\"COUNTRYID\" AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-j"},{"uniqueQueryID":199,"question":" who lives in once country and has citizenship in another country","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oCountry.\"HASNUMERICCOUNTRYCODE\" AS oCountry_hasNumericCountryCode, oCountry.\"HASNAME\" AS oCountry_hasName FROM FIBEN.\"PERSON\" oPerson INNER JOIN FIBEN.\"COUNTRY\" oCountry ON oPerson.\"HASCITIZENSHIP\"=oCountry.\"COUNTRYID\" WHERE oCountry.\"HASNAME\" NOT IN (SELECT oInnerCountry.\"HASNAME\" AS oInnerCountry_hasName FROM FIBEN.\"ADDRESS\" oInnerAddress INNER JOIN FIBEN.\"POSTALADDRESS\" oInnerPostalAddress ON oInnerAddress.\"POSTALADDRESS\"=oInnerPostalAddress.\"POSTALADDRESSID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" oInnerAutonomousAgent ON oInnerAddress.\"ISINDEXTO\"=oInnerAutonomousAgent.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON oInnerAutonomousAgent.\"AUTONOMOUSAGENTID\"=oInnerPerson.\"PERSONID\" INNER JOIN FIBEN.\"COUNTRY\" oInnerCountry ON oInnerPostalAddress.\"HASCOUNTRY\"=oInnerCountry.\"COUNTRYID\" AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-j"},{"uniqueQueryID":200,"question":"find everyone who invested in the same company they work for","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oHolding.\"HASCOUNT\" AS oHolding_hasCount, oHolding.\"HASDESCRIPTION\" AS oHolding_hasDescription FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" AND oCorporation.\"HASLEGALNAME\" IN (SELECT oInnerCorporation.\"HASLEGALNAME\" AS oInnerCorporation_HASLEGALNAME FROM FIBEN.\"CONTRACT\" oInnerContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE innerPerson1.\"HASPERSONNAME\" = oPerson.\"HASPERSONNAME\")","queryType":"type-j"},{"uniqueQueryID":201,"question":" show me everyone who has holding of one company but has contract with a different one","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oHolding.\"HASCOUNT\" AS oHolding_hasCount, oHolding.\"HASDESCRIPTION\" AS oHolding_hasDescription FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" AND oCorporation.\"HASLEGALNAME\" NOT IN (SELECT oInnerCorporation.\"HASLEGALNAME\" AS oInnerCorporation_HASLEGALNAME FROM FIBEN.\"CONTRACT\" oInnerContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE innerPerson1.\"HASPERSONNAME\" = oPerson.\"HASPERSONNAME\")","queryType":"type-j"},{"uniqueQueryID":201,"question":" show me everyone who has holding of one company but has contract with another","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oHolding.\"HASCOUNT\" AS oHolding_hasCount, oHolding.\"HASDESCRIPTION\" AS oHolding_hasDescription FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" AND oCorporation.\"HASLEGALNAME\" NOT IN (SELECT oInnerCorporation.\"HASLEGALNAME\" AS oInnerCorporation_HASLEGALNAME FROM FIBEN.\"CONTRACT\" oInnerContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE innerPerson1.\"HASPERSONNAME\" = oPerson.\"HASPERSONNAME\")","queryType":"type-j"},{"uniqueQueryID":202,"question":" Which insiders hold stock in the companies they are Officer of","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oHolding.\"HASCOUNT\" AS oHolding_hasCount, oHolding.\"HASDESCRIPTION\" AS oHolding_hasDescription FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"SECURITY\" Security1 ON oListedSecurity.\"LISTEDSECURITYID\"=Security1.\"SECURITYID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON Security1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" AND oCorporation.\"HASLEGALNAME\" IN (SELECT oInnerCorporation.\"HASLEGALNAME\" AS oInnerCorporation_HASLEGALNAME FROM FIBEN.\"CONTRACT\" oInnerContract INNER JOIN FIBEN.\"CONTRACTPARTY\" oInnerContractParty ON oInnerContract.\"HASCONTRACTPARTY\"=oInnerContractParty.\"CONTRACTPARTYID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON oInnerContract.\"ISMANAGEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"PERSON\" innerPerson1 ON oInnerContractParty.\"CONTRACTPARTYID\"=innerPerson1.\"PERSONID\" WHERE innerPerson1.\"HASPERSONNAME\" = oPerson.\"HASPERSONNAME\" AND oInnerContract.\"HASPOSITION\"='Officer')","queryType":"type-j"},{"uniqueQueryID":203,"question":" Which companies reported year over year loss of revenue for the most recent quarter","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":203,"question":" Which companies reported a yearly revenue for the most recent quarter","isParaphrased":true,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":203,"question":" Which companies reported a annual revenue loss for the 2020","isParaphrased":true,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":204,"question":" Which companies reported a quarterly revenue loss for the 2020","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q1' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":204,"question":" Which companies reported loss in quarterly revenue for the latest quarter","isParaphrased":true,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q2' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q1' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2020' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":205,"question":" Which companies reported year over year revenue loss for 2019","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q4' AND oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2020'AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT oInnerElementOfFinancialStatement.\"HASMETRICVALUE\" AS oInnerRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oInnerElementOfFinancialStatement ON oInnerRevenue.\"REVENUEID\"=oInnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON oinnerElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE oInnerElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" = 'Q4' AND oInnerElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'quarterly' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2018' AND oInnerElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2018' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-j"},{"uniqueQueryID":206,"question":" Who purchased stock in 2019 that is worth more now","isParaphrased":false,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":206,"question":" Who sold stocks last year that has become expensive now","isParaphrased":true,"SQL":" SELECT oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT oInnerMonetaryAmount.\"HASAMOUNT\" AS oInnerMonetaryAmount_hasAmount FROM FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerListedSecurity.\"HASLASTTRADEDVALUE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\"= oInnerListedSecurity.\"HASTICKERSYMBOL\" FETCH FIRST 1 ROWS ONLY)","queryType":"type-j"},{"uniqueQueryID":207,"question":" Who holds IBM stocks more than he holds Alphabet","isParaphrased":false,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":207,"question":" show me investors holding more stocks of IBM than Alphabet","isParaphrased":true,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":207,"question":" Who holds more IBM stocks than Alphabet","isParaphrased":true,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":208,"question":"find someone who bought more IBM stocks in 2019 than he bought in 2018","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":208,"question":" which investors bought more IBM stocks in 2019 than in 2018","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":208,"question":" who bought IBM stocks in 2019 more than he did in 2018","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":209,"question":" who bought Alphabet stocks in more price than his average buying price in 2019","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":210,"question":" Which investors sold IBM stocks in 2019 with price more than their average buying price","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":211,"question":" Find the managers of accounts holding more IBM stocks than MSFT","isParaphrased":false,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":211,"question":" List persons managing accounts having a higher holding of IBM stocks than MSFT","isParaphrased":true,"SQL":" SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") > (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":212,"question":" who bought Alphabet stocks in 2019 with a lower price than his average transaction amount","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":213,"question":" Who bought more IBM stock than they sold","isParaphrased":false,"SQL":"SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":214,"question":" Who bought more IBM stock in 2019 than they sold in 2018","isParaphrased":false,"SQL":"SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":215,"question":" whose holding of Alphabet stocks is less than MSFT","isParaphrased":false,"SQL":"SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") < (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":216,"question":" List the account number of investors who is holding less Alphabet stocks than MSFT","isParaphrased":false,"SQL":"SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, FinancialServiceAccount1.\"HASACCOUNTNUMBER\" AS FinancialServiceAccount1_HASACCOUNTNUMBER FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASLEGALNAME\" = 'Alphabet Inc.' GROUP BY oPerson.\"HASPERSONNAME\", FinancialServiceAccount1.\"HASACCOUNTNUMBER\" HAVING Sum(oHolding.\"HASCOUNT\") < (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":217,"question":" Who sold less IBM stocks in this year than he sold in previous year","isParaphrased":false,"SQL":"SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") < (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":218,"question":" List all customers who bought more IBM stocks than MSFT","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" GROUP BY oPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":219,"question":" who bought more IBM stocks than MSFT in last 3 years","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000'GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" GROUP BY oPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":220,"question":" who bought IBM stocks in 2018 more than he bought MSFT between 2016 and 2018","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000'GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2016-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" GROUP BY oPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":221,"question":" Who sold less IBM stock in last 2 years than they bought between 2010 and 2015","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") < (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2010-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2015-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":222,"question":" name all persons with transactions in this year with price higher than his average price of transactions last year","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":223,"question":" which company generated revenue in 2019 more than in the average revenue it generated last 3 years","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oRevenue_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oRevenue.\"REVENUEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-ja"},{"uniqueQueryID":224,"question":" which company reported more expense in 2019 than its average expense report last 3 years","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oEXPENSE_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oEXPENSE_hasMetricValue, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oEXPENSE.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" > (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"EXPENSE\" oInnerEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerEXPENSE.\"EXPENSEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-ja"},{"uniqueQueryID":225,"question":" who holds lesser number of ADBE stocks than om","isParaphrased":false,"SQL":"SELECT Sum(oHolding.\"HASCOUNT\"), oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"HOLDING\" oHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oHolding.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oHolding.\"ISHELDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oListedSecurity.\"HASTICKERSYMBOL\" = 'ADBE' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oHolding.\"HASCOUNT\") < (SELECT Sum(oInnerHolding.\"HASCOUNT\") FROM FIBEN.\"HOLDING\" oInnerHolding INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerHolding.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerHolding.\"ISHELDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'QCOM' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" )","queryType":"type-ja"},{"uniqueQueryID":226,"question":" email address of investors who bought more IBM stock in 2019 than they sold in 2018","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oEmailAddress.\"HASVALUE\" AS oEmailAddress_hasValue, Person1.\"HASPERSONNAME\" FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" Person1 ON FinancialServiceAccount1.\"ISOWNEDBY\"=Person1.\"PERSONID\" INNER JOIN FIBEN.\"AUTONOMOUSAGENT\" AutonomousAgent1 ON Person1.\"PERSONID\"=AutonomousAgent1.\"AUTONOMOUSAGENTID\" INNER JOIN FIBEN.\"ADDRESS\" Address1 ON AutonomousAgent1.\"AUTONOMOUSAGENTID\"=Address1.\"ISINDEXTO\" INNER JOIN FIBEN.\"VIRTUALADDRESS\" VirtualAddress1 ON Address1.\"VIRTUALADDRESS\"=VirtualAddress1.\"VIRTUALADDRESSID\" INNER JOIN FIBEN.\"EMAILADDRESS\" oEmailAddress ON VirtualAddress1.\"VIRTUALADDRESSID\"=oEmailAddress.\"EMAILADDRESSID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASTICKERSYMBOL\" = 'IBM' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oEmailAddress.\"HASVALUE\", Person1.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") < (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '2' AND oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'IBM' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND Person1.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":208,"question":" whose purchase of IBM stocks has increased in 2019 ?","isParaphrased":true,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' GROUP BY oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":227,"question":" show me the account managers that sold more IBM stocks than MSFT in 2019","isParaphrased":false,"SQL":" SELECT Sum(oSecuritiesTransaction.\"HASCOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName FROM FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 ON oSecuritiesTransaction.\"ISFACILITATEDBY\"=FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISMANAGEDBY\"=oPerson.\"PERSONID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2029-12-31 23:59:00.000'GROUP BY oListedSecurity.\"HASTICKERSYMBOL\",oListedSecurity.\"HASLEGALNAME\",oPerson.\"HASPERSONNAME\" HAVING Sum(oSecuritiesTransaction.\"HASCOUNT\") > (SELECT Sum(oInnerSecuritiesTransaction.\"HASCOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISMANAGEDBY\"=oInnerPerson.\"PERSONID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerListedSecurity.\"HASTICKERSYMBOL\" = 'MSFT' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oPerson.\"HASPERSONNAME\" = oInnerPerson.\"HASPERSONNAME\" GROUP BY oPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":228,"question":" who sold IBM stocks in 2019 in less price than his minimum selling price in 2018","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" < (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" AND oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2018-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2018-12-31 23:59:00.000'WHERE oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":229,"question":" In this year who bought IBM stocks with a higher price than his maximum buying price in last year","isParaphrased":false,"SQL":" SELECT oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol, oPerson.\"HASPERSONNAME\" AS oPerson_hasPersonName, oListedSecurity.\"HASLEGALNAME\" AS oListedSecurity_hasLegalName, oMonetaryAmount.\"HASAMOUNT\" AS oMonetaryAmount_hasAmount, oSecuritiesTransaction.\"HASTYPE\" AS oSecuritiesTransaction_hasType, oSecuritiesTransaction.\"HASSETTLEMENTDATE\" AS oSecuritiesTransaction_hasSettlementDate FROM FIBEN.\"FINANCIALSERVICEACCOUNT\" FinancialServiceAccount1 INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON FinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\"=oSecuritiesTransaction.\"ISFACILITATEDBY\" INNER JOIN FIBEN.\"PERSON\" oPerson ON FinancialServiceAccount1.\"ISOWNEDBY\"=oPerson.\"PERSONID\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" INNER JOIN FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount ON oSecuritiesTransaction.\"HASPRICE\"=oMonetaryAmount.\"MONETARYAMOUNTID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '1' AND oListedSecurity.\"HASLEGALNAME\" = 'International Business Machines Corporation' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' AND oMonetaryAmount.\"HASAMOUNT\" > (SELECT Max(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction INNER JOIN FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount ON oInnerSecuritiesTransaction.\"HASPRICE\"=oInnerMonetaryAmount.\"MONETARYAMOUNTID\" INNER JOIN FIBEN.\"FINANCIALSERVICEACCOUNT\" innerFinancialServiceAccount1 ON oInnerSecuritiesTransaction.\"ISFACILITATEDBY\"=innerFinancialServiceAccount1.\"FINANCIALSERVICEACCOUNTID\" INNER JOIN FIBEN.\"PERSON\" oInnerPerson ON innerFinancialServiceAccount1.\"ISOWNEDBY\"=oInnerPerson.\"PERSONID\" AND oSecuritiesTransaction.\"HASTYPE\" = '1' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000'WHERE oPerson.\"HASPERSONNAME\"= oInnerPerson.\"HASPERSONNAME\")","queryType":"type-ja"},{"uniqueQueryID":230,"question":" which stocks have higher average selling price this year than its minimum buying price last year","isParaphrased":false,"SQL":" SELECT Avg(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" HAVING Avg(oMonetaryAmount.\"HASAMOUNT\") > (SELECT Min(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-ja"},{"uniqueQueryID":231,"question":" which stocks have higher average selling price this year than the average price it was bought with in last year ?","isParaphrased":false,"SQL":"SELECT Avg(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" HAVING Avg(oMonetaryAmount.\"HASAMOUNT\") > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-ja"},{"uniqueQueryID":231,"question":" which stocks have seen a rise in average selling price this year compared to its average buying price last year ?","isParaphrased":true,"SQL":"SELECT Avg(oMonetaryAmount.\"HASAMOUNT\") AS AggResult1, oListedSecurity.\"HASTICKERSYMBOL\" AS oListedSecurity_hasTickerSymbol FROM FIBEN.\"MONETARYAMOUNT\" oMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oSecuritiesTransaction ON oMonetaryAmount.\"MONETARYAMOUNTID\"=oSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oListedSecurity ON oSecuritiesTransaction.\"REFERSTO\"=oListedSecurity.\"LISTEDSECURITYID\" WHERE oSecuritiesTransaction.\"HASTYPE\" = '2' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2020-01-01 00:00:00.000' AND oSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2020-12-31 23:59:00.000' GROUP BY oListedSecurity.\"HASTICKERSYMBOL\" HAVING Avg(oMonetaryAmount.\"HASAMOUNT\") > (SELECT Avg(oInnerMonetaryAmount.\"HASAMOUNT\") AS innerAggResult1 FROM FIBEN.\"MONETARYAMOUNT\" oInnerMonetaryAmount INNER JOIN FIBEN.\"SECURITIESTRANSACTION\" oInnerSecuritiesTransaction ON oInnerMonetaryAmount.\"MONETARYAMOUNTID\"=oInnerSecuritiesTransaction.\"HASPRICE\" INNER JOIN FIBEN.\"LISTEDSECURITY\" oInnerListedSecurity ON oInnerSecuritiesTransaction.\"REFERSTO\"=oInnerListedSecurity.\"LISTEDSECURITYID\" WHERE oInnerSecuritiesTransaction.\"HASTYPE\" = '1' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" >= '2019-01-01 00:00:00.000' AND oInnerSecuritiesTransaction.\"HASSETTLEMENTDATE\" <= '2019-12-31 23:59:00.000' AND oListedSecurity.\"HASTICKERSYMBOL\" = oInnerListedSecurity.\"HASTICKERSYMBOL\")","queryType":"type-ja"},{"uniqueQueryID":232,"question":" Show me all the services companies whose revenue in last year was higher than industry average in 2018","isParaphrased":false,"SQL":" SELECT oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2019' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' AND oIndustrySectorClassifier.\"HASFORMALNAME\" = 'Services' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" > (SELECT AVG(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oInnerIndustrySectorClassifier ON oInnerCorporation.\"ISCLASSIFIEDBY\"=oInnerIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" = oInnerIndustrySectorClassifier.\"HASFORMALNAME\" AND innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2018')","queryType":"type-ja"},{"uniqueQueryID":233,"question":" which companies reported lesser revenue 2018 than the industry average in the previous year","isParaphrased":false,"SQL":" SELECT oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oRevenue_hasMetricValue FROM FIBEN.\"REVENUE\" oRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oRevenue.\"REVENUEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2018' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2018' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" < (SELECT AVG(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"REVENUE\" oInnerRevenue INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerRevenue.\"REVENUEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oInnerIndustrySectorClassifier ON oInnerCorporation.\"ISCLASSIFIEDBY\"=oInnerIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" = oInnerIndustrySectorClassifier.\"HASFORMALNAME\" AND innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2017')","queryType":"type-ja"},{"uniqueQueryID":234,"question":" which companies reported higher expense this year than the industry average in last 3 years","isParaphrased":false,"SQL":" SELECT oIndustrySectorClassifier.\"HASFORMALNAME\" AS oIndustrySectorClassifier_hasFormalName, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName, ElementOfFinancialStatement1.\"HASMETRICVALUE\" AS oEXPENSE_hasMetricValue FROM FIBEN.\"EXPENSE\" oEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" ElementOfFinancialStatement1 ON oEXPENSE.\"EXPENSEID\"=ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON ElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oIndustrySectorClassifier ON oCorporation.\"ISCLASSIFIEDBY\"=oIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE ElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2020' AND ElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2020' AND ElementOfFinancialStatement1.\"HASMETRICVALUE\" > (SELECT AVG(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"EXPENSE\" oInnerEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerEXPENSE.\"EXPENSEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" INNER JOIN FIBEN.\"INDUSTRYSECTORCLASSIFIER\" oInnerIndustrySectorClassifier ON oInnerCorporation.\"ISCLASSIFIEDBY\"=oInnerIndustrySectorClassifier.\"INDUSTRYSECTORCLASSIFIERID\" WHERE oIndustrySectorClassifier.\"HASFORMALNAME\" = oInnerIndustrySectorClassifier.\"HASFORMALNAME\" AND innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019')","queryType":"type-ja"},{"uniqueQueryID":235,"question":" which companies reported higher expense in 2019 than the highest expense it reported between 2014 and 2018","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oEXPENSE_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oEXPENSE_hasMetricValue, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oEXPENSE.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oElementOfFinancialStatement.\"HASMETRICVALUE\" > (SELECT Max(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"EXPENSE\" oInnerEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerEXPENSE.\"EXPENSEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2014' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2018' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-ja"},{"uniqueQueryID":236,"question":" Which companies had less expense last year than its average expense in last 3 years","isParaphrased":false,"SQL":" SELECT oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" AS oEXPENSE_hasMetricYearFiscal, oElementOfFinancialStatement.\"HASMETRICVALUE\" AS oEXPENSE_hasMetricValue, oElementOfFinancialStatement.\"HASMETRICSTARTQUARTER\" AS oElementOfFinancialStatement_hasMetricStartQuarter, oCorporation.\"HASLEGALNAME\" AS oCorporation_hasLegalName FROM FIBEN.\"EXPENSE\" oEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" oElementOfFinancialStatement ON oEXPENSE.\"EXPENSEID\"=oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" ElementsOfFinancialReport1 ON oElementOfFinancialStatement.\"ELEMENTOFFINANCIALSTATEMENTID\"=ElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" FinancialReport1 ON ElementsOfFinancialReport1.\"ISMEMBEROF\"=FinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oCorporation ON FinancialReport1.\"ISPROVIDEDBY\"=oCorporation.\"CORPORATIONID\" WHERE oElementOfFinancialStatement.\"APPLICABLEPERIOD\" = 'yearly' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" >= '2019' AND oElementOfFinancialStatement.\"HASMETRICYEARFISCAL\" <= '2019' AND oElementOfFinancialStatement.\"HASMETRICVALUE\" < (SELECT Avg(innerElementOfFinancialStatement1.\"HASMETRICVALUE\") AS innerAggResult1 FROM FIBEN.\"EXPENSE\" oInnerEXPENSE INNER JOIN FIBEN.\"ELEMENTOFFINANCIALSTATEMENT\" innerElementOfFinancialStatement1 ON oInnerEXPENSE.\"EXPENSEID\"=innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\" INNER JOIN FIBEN.\"ELEMENTSOFFINANCIALREPORT\" innerElementsOfFinancialReport1 ON innerElementOfFinancialStatement1.\"ELEMENTOFFINANCIALSTATEMENTID\"=innerElementsOfFinancialReport1.\"ELEMENTSOFFINANCIALREPORTID\" INNER JOIN FIBEN.\"FINANCIALREPORT\" innerFinancialReport1 ON innerElementsOfFinancialReport1.\"ISMEMBEROF\"=innerFinancialReport1.\"FINANCIALREPORTID\" INNER JOIN FIBEN.\"CORPORATION\" oInnerCorporation ON innerFinancialReport1.\"ISPROVIDEDBY\"=oInnerCorporation.\"CORPORATIONID\" WHERE innerElementOfFinancialStatement1.\"APPLICABLEPERIOD\" = 'yearly' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" >= '2017' AND innerElementOfFinancialStatement1.\"HASMETRICYEARFISCAL\" <= '2019' AND oCorporation.\"HASLEGALNAME\" = oInnerCorporation.\"HASLEGALNAME\")","queryType":"type-ja"},{"uniqueQueryID":237,"question":"which companies have number of officers more than the average in its industry ?","isParaphrased":false,"SQL":" WITH numOfficersPerCorp AS (SELECT oCorporation.HASLEGALNAME as corp, COUNT(oContract.CONTRACTID) as numOfficers FROM CONTRACT oContract INNER JOIN CORPORATION oCorporation ON oContract.ISMANAGEDBY=oCorporation.CORPORATIONID WHERE oContract.HASPOSITION = 'Officer' GROUP BY oCorporation.HASLEGALNAME) SELECT corp, numOfficers, industry, industryAverage FROM ( SELECT corp, numOfficers, oCorporation.ISCLASSIFIEDBY as industry, AVG(numOfficers) OVER(PARTITION BY oCorporation.ISCLASSIFIEDBY) industryAverage FROM numOfficersPerCorp INNER JOIN CORPORATION oCorporation ON corp = oCorporation.HASLEGALNAME) WHERE numOfficers > industryAverage","queryType":"type-ja"}]