db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
financial | select count(t1.client_id) from client as t1 inner join district as t2 on t1.district_id = t2.district_id where t1.gender = 'm' and t2.a15 = (select t3.a15 from district as t3 order by t3.a15 desc limit 1, 1) | Question: in the branch where the second-highest number of crimes were committed in 1995 occurred, how many male clients are there? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, acc... | in the branch where the second-highest number of crimes were committed in 1995 occurred, how many male clients are there? |
financial | select count(t1.card_id) from card as t1 inner join disp as t2 on t1.disp_id = t2.disp_id where t1.type = 'gold' and t2.type = 'disponent' | Question: how many high-level credit cards have 'disponent' type of disposition? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4,... | how many high-level credit cards have 'disponent' type of disposition? |
financial | select count(t1.account_id) from account as t1 inner join district as t2 on t1.district_id = t2.district_id where t2.a2 = 'pisek' | Question: how many accounts are there in the district of 'pisek'? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8... | how many accounts are there in the district of 'pisek'? |
financial | select t1.district_id from account as t1 inner join district as t2 on t1.district_id = t2.district_id inner join trans as t3 on t1.account_id = t3.account_id where strftime('%y', t3.date) = '1997' group by t1.district_id having sum(t3.amount) > 10000 | Question: which districts have transactions greater than uss$10,000 in 1997? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5,... | which districts have transactions greater than uss$10,000 in 1997? |
financial | select distinct t2.account_id from trans as t1 inner join account as t2 on t1.account_id = t2.account_id inner join district as t3 on t2.district_id = t3.district_id where t1.k_symbol = 'sipo' and t3.a2 = 'pisek' | Question: which accounts placed orders for household payment in pisek? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A... | which accounts placed orders for household payment in pisek? |
financial | select t2.account_id from card as t1 inner join disp as t2 on t1.disp_id = t2.disp_id where t1.type in ('gold', 'junior') | Question: what are the accounts that have both gold and junior credit cards? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5,... | what are the accounts that have both gold and junior credit cards? |
financial | select avg(t3.amount) from card as t1 inner join disp as t2 on t1.disp_id = t2.disp_id inner join trans as t3 on t2.account_id = t3.account_id where strftime('%y', t3.date) = '2021' and t3.operation = 'vyber kartou' | Question: how much is the average amount in credit card made by account holders in a month, in year 2021? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district ->... | how much is the average amount in credit card made by account holders in a month, in year 2021? |
financial | select t1.account_id from trans as t1 inner join account as t2 on t1.account_id = t2.account_id where strftime('%y', t1.date) = '1998' and t1.operation = 'vyber kartou' and t1.amount < (select avg(amount) from trans where strftime('%y', date) = '1998') | Question: who are the account holder identification numbers whose spent per month on the credit card is less than the average, in 1998? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id,... | who are the account holder identification numbers whose spent per month on the credit card is less than the average, in 1998? |
financial | select t1.client_id from client as t1 inner join disp as t2 on t1.client_id = t2.client_id inner join loan as t3 on t2.account_id = t3.account_id inner join card as t4 on t2.disp_id = t4.disp_id where t1.gender = 'f' | Question: who are the female account holders who own credit cards and also have loans? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A... | who are the female account holders who own credit cards and also have loans? |
financial | select count(t1.client_id) from client as t1 inner join district as t2 on t1.district_id = t2.district_id where t1.gender = 'f' and t2.a3 = 'south bohemia' | Question: how many female clients' accounts are in the region of south bohemia? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, ... | how many female clients' accounts are in the region of south bohemia? |
financial | select t2.account_id from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join disp as t3 on t2.account_id = t3.account_id where t3.type = 'owner' and t1.a2 = 'tabor' | Question: please list the accounts whose district is tabor that are eligible for loans. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, ... | please list the accounts whose district is tabor that are eligible for loans. |
financial | select t3.type from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join disp as t3 on t2.account_id = t3.account_id where t3.type != 'owner' and t1.a11 between 8000 and 9000 | Question: please list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, g... | please list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000. |
financial | select count(t2.account_id) from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join trans as t3 on t2.account_id = t3.account_id where t3.bank = 'ab' and t1.a3 = 'north bohemia' | Question: how many accounts in north bohemia has made a transaction with the partner's bank being ab? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> dis... | how many accounts in north bohemia has made a transaction with the partner's bank being ab? |
financial | select distinct t1.a2 from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join trans as t3 on t2.account_id = t3.account_id where t3.type = 'vydaj' | Question: please list the name of the districts with accounts that made withdrawal transactions. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district... | please list the name of the districts with accounts that made withdrawal transactions. |
financial | select avg(t1.a15) from district as t1 inner join account as t2 on t1.district_id = t2.district_id where strftime('%y', t2.date) >= '1997' and t1.a15 > 4000 | Question: what is the average number of crimes committed in 1995 in regions where the number exceeds 4000 and the region has accounts that are opened starting from the year 1997? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_dat... | what is the average number of crimes committed in 1995 in regions where the number exceeds 4000 and the region has accounts that are opened starting from the year 1997? |
financial | select count(t1.card_id) from card as t1 inner join disp as t2 on t1.disp_id = t2.disp_id where t1.type = 'classic' and t2.type = 'owner' | Question: how many 'classic' cards are eligible for loan? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9, A1... | how many 'classic' cards are eligible for loan? |
financial | select count(t1.client_id) from client as t1 inner join district as t2 on t1.district_id = t2.district_id where t1.gender = 'm' and t2.a2 = 'hl.m. praha' | Question: how many male clients in 'hl.m. praha' district? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9, A... | how many male clients in 'hl.m. praha' district? |
financial | select cast(sum(type = 'gold') as real) * 100 / count(card_id) from card where strftime('%y', issued) < '1998' | Question: how many percent of 'gold' cards were issued prior to 1998? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7... | how many percent of 'gold' cards were issued prior to 1998? |
financial | select t1.client_id from disp as t1 inner join loan as t2 on t1.account_id = t2.account_id where t1.type = 'owner' order by t2.amount desc limit 1 | Question: who is the owner of the account with the largest loan amount? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, ... | who is the owner of the account with the largest loan amount? |
financial | select t1.a15 from district as t1 inner join `account` as t2 on t1.district_id = t2.district_id where t2.account_id = 532 | Question: what is the number of committed crimes in 1995 in the district of the account with the id 532? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> ... | what is the number of committed crimes in 1995 in the district of the account with the id 532? |
financial | select t3.district_id from `order` as t1 inner join account as t2 on t1.account_id = t2.account_id inner join district as t3 on t2.district_id = t3.district_id where t1.order_id = 33333 | Question: what is the district id of the account that placed the order with the id 33333? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2... | what is the district id of the account that placed the order with the id 33333? |
financial | select t4.trans_id from client as t1 inner join disp as t2 on t1.client_id = t2.client_id inner join account as t3 on t2.account_id = t3.account_id inner join trans as t4 on t3.account_id = t4.account_id where t1.client_id = 3356 and t4.operation = 'vyber' | Question: list all the withdrawals in cash transactions that the client with the id 3356 makes. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_... | list all the withdrawals in cash transactions that the client with the id 3356 makes. |
financial | select count(t1.account_id) from loan as t1 inner join account as t2 on t1.account_id = t2.account_id where t2.frequency = 'poplatek tydne' and t1.amount < 200000 | Question: among the weekly issuance accounts, how many have a loan of under 200000? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, ... | among the weekly issuance accounts, how many have a loan of under 200000? |
financial | select t3.type from disp as t1 inner join client as t2 on t1.client_id = t2.client_id inner join card as t3 on t1.disp_id = t3.disp_id where t2.client_id = 13539 | Question: what type of credit card does the client with the id 13539 own? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6... | what type of credit card does the client with the id 13539 own? |
financial | select t2.district_id, t1.a3 from district as t1 inner join client as t2 on t1.district_id = t2.district_id where t2.client_id = 3541 | Question: what is the region of the client with the id 3541 from? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8... | what is the region of the client with the id 3541 from? |
financial | select t1.district_id from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join loan as t3 on t2.account_id = t3.account_id where t3.status = 'a' group by t1.district_id order by count(t2.account_id) desc limit 1 | Question: which district has the most accounts with loan contracts finished with no problems? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id... | which district has the most accounts with loan contracts finished with no problems? |
financial | select t3.client_id from `order` as t1 inner join account as t2 on t1.account_id = t2.account_id inner join client as t3 on t2.district_id = t3.district_id where t1.order_id = 32423 | Question: who placed the order with the id 32423? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, ... | who placed the order with the id 32423? |
financial | select t3.trans_id from district as t1 inner join account as t2 on t1.district_id = t2.district_id inner join trans as t3 on t2.account_id = t3.account_id where t1.district_id = 5 | Question: please list all the transactions made by accounts from district 5. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5,... | please list all the transactions made by accounts from district 5. |
financial | select count(t2.account_id) from district as t1 inner join account as t2 on t1.district_id = t2.district_id where t1.a2 = 'jesenik' | Question: how many of the accounts are from jesenik district? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9... | how many of the accounts are from jesenik district? |
financial | select t2.client_id from card as t1 inner join disp as t2 on t1.disp_id = t2.disp_id where t1.type = 'junior' and t1.issued >= '1997-01-01' | Question: list all the clients' ids whose junior credit cards were issued after 1996. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3... | list all the clients' ids whose junior credit cards were issued after 1996. |
financial | select cast(sum(t2.gender = 'f') as real) * 100 / count(t2.client_id) from district as t1 inner join client as t2 on t1.district_id = t2.district_id where t1.a11 > 10000 | Question: what percentage of clients who opened their accounts in the district with an average salary of over 10000 are women? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_... | what percentage of clients who opened their accounts in the district with an average salary of over 10000 are women? |
financial | select cast((sum(case when strftime('%y', t1.date) = '1997' then t1.amount else 0 end) - sum(case when strftime('%y', t1.date) = '1996' then t1.amount else 0 end)) as real) * 100 / sum(case when strftime('%y', t1.date) = '1996' then t1.amount else 0 end) from loan as t1 inner join account as t2 on t1.account_id = t2.ac... | Question: what was the growth rate of the total amount of loans across all accounts for a male client between 1996 and 1997? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id... | what was the growth rate of the total amount of loans across all accounts for a male client between 1996 and 1997? |
financial | select count(account_id) from trans where strftime('%y', date) > '1995' and operation = 'vyber kartou' | Question: how many credit card withdrawals were recorded after 1995? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7,... | how many credit card withdrawals were recorded after 1995? |
financial | select sum(iif(a3 = 'east bohemia', a16, 0)) - sum(iif(a3 = 'north bohemia', a16, 0)) from district | Question: what was the difference in the number of crimes committed in east and north bohemia in 1996? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> di... | what was the difference in the number of crimes committed in east and north bohemia in 1996? |
financial | select sum(type = 'owner') , sum(type = 'disponent') from disp where account_id between 1 and 10 | Question: how many owner and disponent dispositions are there from account number 1 to account number 10? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district ->... | how many owner and disponent dispositions are there from account number 1 to account number 10? |
financial | select t1.frequency, t2.k_symbol from account as t1 inner join `order` as t2 on t1.account_id = t2.account_id where t1.account_id = 3 and t2.amount = 3539 | Question: how often does account number 3 request an account statement to be released? what was the aim of debiting 3539 in total? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, acco... | how often does account number 3 request an account statement to be released? what was the aim of debiting 3539 in total? |
financial | select strftime('%y', t1.birth_date) from client as t1 inner join disp as t3 on t1.client_id = t3.client_id inner join account as t2 on t3.account_id = t2.account_id where t2.account_id = 130 | Question: what year was account owner number 130 born? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9, A10, ... | what year was account owner number 130 born? |
financial | select count(t1.account_id) from account as t1 inner join disp as t2 on t1.account_id = t2.account_id where t2.type = 'owner' and t1.frequency = 'poplatek po obratu' | Question: how many accounts have an owner disposition and request for a statement to be generated upon a transaction? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type.... | how many accounts have an owner disposition and request for a statement to be generated upon a transaction? |
financial | select t3.amount, t3.status from client as t1 inner join account as t2 on t1.district_id = t2.district_id inner join loan as t3 on t2.account_id = t3.account_id where t1.client_id = 992 | Question: what is the amount of debt that client number 992 has, and how is this client doing with payments? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district... | what is the amount of debt that client number 992 has, and how is this client doing with payments? |
financial | select t3.balance, t1.gender from client as t1 inner join account as t2 on t1.district_id = t2.district_id inner join trans as t3 on t2.account_id = t3.account_id where t1.client_id = 4 and t3.trans_id = 851 | Question: what is the sum that client number 4's account has following transaction 851? who owns this account, a man or a woman? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, accoun... | what is the sum that client number 4's account has following transaction 851? who owns this account, a man or a woman? |
financial | select t3.type from client as t1 inner join disp as t2 on t1.client_id = t2.client_id inner join card as t3 on t2.disp_id = t3.disp_id where t1.client_id = 9 | Question: which kind of credit card does client number 9 possess? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8... | which kind of credit card does client number 9 possess? |
financial | select sum(t3.amount) from client as t1 inner join account as t2 on t1.district_id = t2.district_id inner join trans as t3 on t2.account_id = t3.account_id where strftime('%y', t3.date)= '1998' and t1.client_id = 617 | Question: how much, in total, did client number 617 pay for all of the transactions in 1998? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id,... | how much, in total, did client number 617 pay for all of the transactions in 1998? |
financial | select t1.client_id, t3.account_id from client as t1 inner join district as t2 on t1.district_id = t2.district_id inner join account as t3 on t2.district_id = t3.district_id where t2.a3 = 'east bohemia' and strftime('%y', t1.birth_date) between '1983' and '1987' | Question: please provide a list of clients who were born between 1983 and 1987 and whose account branch is in east bohemia, along with their ids. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, ... | please provide a list of clients who were born between 1983 and 1987 and whose account branch is in east bohemia, along with their ids. |
financial | select t1.client_id from client as t1 inner join account as t2 on t1.district_id = t2.district_id inner join loan as t3 on t2.account_id = t3.account_id where t1.gender = 'f' order by t3.amount desc limit 3 | Question: please provide the ids of the 3 female clients with the largest loans. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4,... | please provide the ids of the 3 female clients with the largest loans. |
financial | select count(t1.account_id) from trans as t1 inner join account as t2 on t1.account_id = t2.account_id inner join client as t3 on t2.district_id = t3.district_id where strftime('%y', t3.birth_date) between '1974' and '1976' and t3.gender = 'm' and t1.amount > 4000 and t1.k_symbol = 'sipo' | Question: how many male customers who were born between 1974 and 1976 have made a payment on their home in excess of $4000? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id,... | how many male customers who were born between 1974 and 1976 have made a payment on their home in excess of $4000? |
financial | select count(account_id) from account as t1 inner join district as t2 on t1.district_id = t2.district_id where strftime('%y', t1.date) > '1996' and t2.a2 = 'beroun' | Question: how many accounts in beroun were opened after 1996? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A9... | how many accounts in beroun were opened after 1996? |
financial | select count(t1.client_id) from client as t1 inner join disp as t2 on t1.client_id = t2.client_id inner join card as t3 on t2.disp_id = t3.disp_id where t1.gender = 'f' and t3.type = 'junior' | Question: how many female customers have a junior credit card? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A7, A8, A... | how many female customers have a junior credit card? |
financial | select cast(sum(t2.gender = 'f') as real) / count(t2.client_id) * 100 from district as t1 inner join client as t2 on t1.district_id = t2.district_id where t1.a3 = 'prague' | Question: what proportion of customers who have accounts at the prague branch are female? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2... | what proportion of customers who have accounts at the prague branch are female? |
financial | select cast(sum(t1.gender = 'm') as real) * 100 / count(t1.client_id) from client as t1 inner join account as t2 on t1.district_id = t2.district_id where t2.frequency = 'poplatek tydne' | Question: what percentage of male clients request for weekly statements to be issued? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3... | what percentage of male clients request for weekly statements to be issued? |
financial | select count(t2.account_id) from account as t1 inner join disp as t2 on t2.account_id = t1.account_id where t1.frequency = 'poplatek tydne' and t2.type = 'user' | Question: how many clients who choose statement of weekly issuance are user? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5,... | how many clients who choose statement of weekly issuance are user? |
financial | select t1.account_id from loan as t1 inner join account as t2 on t1.account_id = t2.account_id where t1.duration > 24 and strftime('%y', t2.date) < '1997' order by t1.amount asc limit 1 | Question: among the accounts who have loan validity more than 24 months, list out the accounts that have the lowest approved amount and have account opening date before 1997. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, d... | among the accounts who have loan validity more than 24 months, list out the accounts that have the lowest approved amount and have account opening date before 1997. |
financial | select t3.account_id from client as t1 inner join district as t2 on t1.district_id = t2.district_id inner join account as t3 on t2.district_id = t3.district_id where t1.gender = 'f' order by t1.birth_date asc, t2.a11 asc limit 1 | Question: name the account numbers of female clients who are oldest and have lowest average salary? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> distr... | name the account numbers of female clients who are oldest and have lowest average salary? |
financial | select count(t1.client_id) from client as t1 inner join district as t2 on t1.district_id = t2.district_id where strftime('%y', t1.birth_date) = '1920' and t2.a3 = 'east bohemia' | Question: how many clients who were born in 1920 stay in east bohemia? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district -> district_id, A2, A3, A4, A5, A6, A... | how many clients who were born in 1920 stay in east bohemia? |
financial | select count(t2.account_id) from account as t1 inner join loan as t2 on t1.account_id = t2.account_id where t2.duration = 24 and t1.frequency = 'poplatek tydne' | Question: how many loan accounts are for pre-payment of duration of 24 months with weekly issuance of statement. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. dist... | how many loan accounts are for pre-payment of duration of 24 months with weekly issuance of statement. |
financial | select avg(t2.payments) from account as t1 inner join loan as t2 on t1.account_id = t2.account_id where t2.status in ('c', 'd') and t1.frequency = 'poplatek po obratu' | Question: what is the average amount of loan which are still on running contract with statement issuance after each transaction? | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, accoun... | what is the average amount of loan which are still on running contract with statement issuance after each transaction? |
financial | select t3.client_id, t2.district_id, t2.a2 from account as t1 inner join district as t2 on t1.district_id = t2.district_id inner join disp as t3 on t1.account_id = t3.account_id where t3.type = 'owner' | Question: list all id and district for clients that can only have the right to issue permanent orders or apply for loans. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, t... | list all id and district for clients that can only have the right to issue permanent orders or apply for loans. |
financial | select t1.client_id, strftime('%y', current_timestamp) - strftime('%y', t3.birth_date) from disp as t1 inner join card as t2 on t2.disp_id = t1.disp_id inner join client as t3 on t1.client_id = t3.client_id where t2.type = 'gold' and t1.type = 'owner' | Question: provide the ids and age of the client with high level credit card, which is eligible for loans. | Tables: account -> account_id, district_id, frequency, date. card -> card_id, disp_id, type, issued. client -> client_id, gender, birth_date, district_id. disp -> disp_id, client_id, account_id, type. district ->... | provide the ids and age of the client with high level credit card, which is eligible for loans. |
toxicology | select t.bond_type from ( select bond_type, count(bond_id) from bond group by bond_type order by count(bond_id) desc limit 1 ) as t | Question: what is the most common bond type? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id = b... | what is the most common bond type? |
toxicology | select count(distinct t1.molecule_id) from molecule as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id where t2.element = 'cl' and t1.label = '-' | Question: in the non-carcinogenic molecules, how many contain chlorine atoms? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.m... | in the non-carcinogenic molecules, how many contain chlorine atoms? |
toxicology | select avg(oxygen_count) from (select t1.molecule_id, count(t1.element) as oxygen_count from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t2.bond_type = '-' and t1.element = 'o' group by t1.molecule_id) as oxygen_counts | Question: calculate the average number of oxygen atoms in single-bonded molecules. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molec... | calculate the average number of oxygen atoms in single-bonded molecules. |
toxicology | select avg(single_bond_count) from (select t3.molecule_id, count(t1.bond_type) as single_bond_count from bond as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id inner join molecule as t3 on t3.molecule_id = t2.molecule_id where t1.bond_type = '-' and t3.label = '+' group by t3.molecule_id) as subquery | Question: on average how many carcinogenic molecules are single bonded? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecul... | on average how many carcinogenic molecules are single bonded? |
toxicology | select count(distinct t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element = 'na' and t2.label = '-' | Question: in the molecule containing sodium atoms, how many are non-carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecu... | in the molecule containing sodium atoms, how many are non-carcinogenic? |
toxicology | select distinct t2.molecule_id from bond as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.bond_type = '#' and t2.label = '+' | Question: find the triple-bonded molecules which are carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id,... | find the triple-bonded molecules which are carcinogenic. |
toxicology | select cast(count(distinct case when t1.element = 'c' then t1.atom_id else null end) as real) * 100 / count(distinct t1.atom_id) from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t2.bond_type = '=' | Question: what is the percentage of carbon in double-bond molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_i... | what is the percentage of carbon in double-bond molecules? |
toxicology | select count(t.bond_id) from bond as t where t.bond_type = '#' | Question: how many triple type bonds are there? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id ... | how many triple type bonds are there? |
toxicology | select count(distinct t.atom_id) from atom as t where t.element <> 'br' | Question: in how many atoms is there no bromine? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id... | in how many atoms is there no bromine? |
toxicology | select count(t.molecule_id) from molecule as t where molecule_id between 'tr000' and 'tr099' and t.label = '+' | Question: of the first 100 molecules in number order, how many are carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul... | of the first 100 molecules in number order, how many are carcinogenic? |
toxicology | select t.atom_id from atom as t where t.element = 'si' | Question: identify by their id the molecules in which there is silicon. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecul... | identify by their id the molecules in which there is silicon. |
toxicology | select distinct t1.element from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id where t2.bond_id = 'tr004_8_9' | Question: what elements are in the tr004_8_9 bond atoms? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected... | what elements are in the tr004_8_9 bond atoms? |
toxicology | select distinct t1.element from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id inner join connected as t3 on t1.atom_id = t3.atom_id where t2.bond_type = '=' | Question: what elements are in a double type bond? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_... | what elements are in a double type bond? |
toxicology | select t.label from ( select t2.label, count(t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element = 'h' group by t2.label order by count(t2.molecule_id) desc limit 1 ) t | Question: which type of label is the most numerous in atoms with hydrogen? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole... | which type of label is the most numerous in atoms with hydrogen? |
toxicology | select distinct t1.bond_type from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id inner join atom as t3 on t2.atom_id = t3.atom_id where t3.element = 'te' | Question: tellurium is in what type of bond? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id = b... | tellurium is in what type of bond? |
toxicology | select t2.atom_id, t2.atom_id2 from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t1.bond_type = '-' | Question: what atoms are connected in single type bonds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected... | what atoms are connected in single type bonds? |
toxicology | select distinct t1.atom_id from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id inner join connected as t3 on t1.atom_id = t3.atom_id where t2.label = '-' | Question: indicate which atoms are connected in non-carcinogenic type molecules. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul... | indicate which atoms are connected in non-carcinogenic type molecules. |
toxicology | select t.element from ( select t1.element, count(distinct t1.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '-' group by t1.element order by count(distinct t1.molecule_id) asc limit 4 ) t | Question: which element is the least numerous in non-carcinogenic molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mo... | which element is the least numerous in non-carcinogenic molecules? |
toxicology | select t1.bond_type from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t2.atom_id = 'tr004_8' and t2.atom_id2 = 'tr004_20' or t2.atom_id2 = 'tr004_8' and t2.atom_id = 'tr004_20' | Question: what type of bond is there between the atoms tr004_8 and tr004_20? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mo... | what type of bond is there between the atoms tr004_8 and tr004_20? |
toxicology | select distinct t2.label from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element != 'sn' | Question: what type of label is not on molecules with atoms with tin? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_... | what type of label is not on molecules with atoms with tin? |
toxicology | select count(distinct case when t1.element = 'i' then t1.atom_id else null end) as iodine_nums , count(distinct case when t1.element = 's' then t1.atom_id else null end) as sulfur_nums from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id inner join bond as t3 on t2.bond_id = t3.bond_id where t3.bond_ty... | Question: how many atoms with iodine and sulfur type elements are there in single bond molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.mole... | how many atoms with iodine and sulfur type elements are there in single bond molecules? |
toxicology | select t2.atom_id, t2.atom_id2 from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t1.bond_type = '#' | Question: identify all connected atoms with a triple bond. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connect... | identify all connected atoms with a triple bond. |
toxicology | select t2.atom_id, t2.atom_id2 from atom as t1 inner join connected as t2 on t2.atom_id = t1.atom_id where t1.molecule_id = 'tr181' | Question: identify all the atoms that are connected to the atoms of the tr181 molecule. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = ... | identify all the atoms that are connected to the atoms of the tr181 molecule. |
toxicology | select cast(count(distinct case when t1.element <> 'f' then t2.molecule_id else null end) as real) * 100 / count(distinct t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+' | Question: what percentage of carcinogenic-type molecules does not contain fluorine? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mole... | what percentage of carcinogenic-type molecules does not contain fluorine? |
toxicology | select cast(count(distinct case when t2.label = '+' then t2.molecule_id else null end) as real) * 100 / count(distinct t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id inner join bond as t3 on t2.molecule_id = t3.molecule_id where t3.bond_type = '#' | Question: what is the percentage of carcinogenic molecules in triple type bonds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul... | what is the percentage of carcinogenic molecules in triple type bonds? |
toxicology | select distinct t.element from atom as t where t.molecule_id = 'tr000' order by t.element limit 3 | Question: please list top three elements of the toxicology of the molecule tr000 in alphabetical order. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bon... | please list top three elements of the toxicology of the molecule tr000 in alphabetical order. |
toxicology | select substr(t.bond_id, 1, 7) as atom_id1 , t.molecule_id || substr(t.bond_id, 8, 2) as atom_id2 from bond as t where t.molecule_id = 'tr001' and t.bond_id = 'tr001_2_6' | Question: what are the atoms that are bonded in the molecule tr001 with the bond id of tr001_2_6? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.mole... | what are the atoms that are bonded in the molecule tr001 with the bond id of tr001_2_6? |
toxicology | select count(case when t.label = '+' then t.molecule_id else null end) - count(case when t.label = '-' then t.molecule_id else null end) as diff_car_notcar from molecule t | Question: what is the difference between the number of molecules that are carcinogenic and those that are not? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_... | what is the difference between the number of molecules that are carcinogenic and those that are not? |
toxicology | select t.atom_id from connected as t where t.bond_id = 'tr000_2_5' | Question: what are the atom ids of the bond tr_000_2_5? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.... | what are the atom ids of the bond tr_000_2_5? |
toxicology | select t.bond_id from connected as t where t.atom_id2 = 'tr000_2' | Question: what are the bond ids that have the same atom id 2 of tr000_2? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecu... | what are the bond ids that have the same atom id 2 of tr000_2? |
toxicology | select distinct t.molecule_id from bond as t where t.bond_type = '=' order by t.molecule_id limit 5 | Question: please list top five molecules that have double bonds in alphabetical order. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = m... | please list top five molecules that have double bonds in alphabetical order. |
toxicology | select cast(count(case when t.bond_type = '=' then t.bond_id else null end) as real) * 100 / count(t.bond_id) from bond as t where t.molecule_id = 'tr008' | Question: what is the percentage of double bonds in the molecule tr008? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecul... | what is the percentage of double bonds in the molecule tr008? |
toxicology | select cast(count(case when t.label = '+' then t.molecule_id else null end) as real) * 100 / count(t.molecule_id) from molecule t | Question: what is the percentage of molecules that are carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_i... | what is the percentage of molecules that are carcinogenic? |
toxicology | select cast(count(case when t.element = 'h' then t.atom_id else null end) as real) * 100 / count(t.atom_id) from atom as t where t.molecule_id = 'tr206' | Question: how much of the hydrogen in molecule tr206 is accounted for? please provide your answer in percentage. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecul... | how much of the hydrogen in molecule tr206 is accounted for? please provide your answer in percentage. |
toxicology | select distinct t.bond_type from bond as t where t.molecule_id = 'tr000' | Question: what is the type of bond that molecule tr000 has when involved in any bonds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = m... | what is the type of bond that molecule tr000 has when involved in any bonds? |
toxicology | select distinct t1.element, t2.label from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.molecule_id = 'tr060' | Question: what are the elements of the toxicology and label of molecule tr060? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.... | what are the elements of the toxicology and label of molecule tr060? |
toxicology | select t.bond_type from ( select t1.bond_type, count(t1.molecule_id) from bond as t1 where t1.molecule_id = 'tr018' group by t1.bond_type order by count(t1.molecule_id) desc limit 1 ) as t | Question: which bond type accounted for the majority of the bonds found in molecule tr018 and state whether or not this molecule is carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: at... | which bond type accounted for the majority of the bonds found in molecule tr018 and state whether or not this molecule is carcinogenic? |
toxicology | select distinct t2.molecule_id from bond as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.bond_type = '-' and t2.label = '-' order by t2.molecule_id limit 3 | Question: please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id ... | please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order. |
toxicology | select distinct t2.bond_id from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id where t1.molecule_id = 'tr006' order by t2.bond_id limit 2 | Question: please list top two bonds that happened with the molecule tr006 in alphabetical order. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molec... | please list top two bonds that happened with the molecule tr006 in alphabetical order. |
toxicology | select count(t2.bond_id) from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t1.molecule_id = 'tr009' and t2.atom_id = t1.molecule_id || '_1' and t2.atom_id2 = t1.molecule_id || '_2' | Question: how many bonds which involved atom 12 does molecule tr009 have? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molec... | how many bonds which involved atom 12 does molecule tr009 have? |
toxicology | select count(distinct t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+' and t1.element = 'br' | Question: how many molecules are carcinogenic and have the bromine element? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mol... | how many molecules are carcinogenic and have the bromine element? |
toxicology | select t1.bond_type, t2.atom_id, t2.atom_id2 from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t2.bond_id = 'tr001_6_9' | Question: what are the bond type and the atoms of the bond id of tr001_6_9? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mol... | what are the bond type and the atoms of the bond id of tr001_6_9? |
toxicology | select t2.molecule_id , iif(t2.label = '+', 'yes', 'no') as flag_carcinogenic from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.atom_id = 'tr001_10' | Question: which molecule does the atom tr001_10 belong to? please state whether this molecule is carcinogenic or not. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.mo... | which molecule does the atom tr001_10 belong to? please state whether this molecule is carcinogenic or not. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.