query_id
int64 0
7k
| database_id
stringclasses 140
values | table_id
sequencelengths 1
5
| query
stringlengths 16
224
| answer
stringlengths 18
577
| difficulty
stringclasses 4
values |
---|---|---|---|---|---|
900 | insurance_fnol | [
"available_policies"
] | Find the policy types more than 4 customers use. Show their type code. | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4 | easy |
901 | insurance_fnol | [
"settlements"
] | Find the total and average amount of settlements. | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements | medium |
902 | insurance_fnol | [
"settlements"
] | Return the sum and average of all settlement amounts. | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements | medium |
903 | insurance_fnol | [
"first_notification_of_loss",
"services"
] | Find the name of services that have been used for more than 2 times in first notification of loss. | SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 | medium |
904 | insurance_fnol | [
"first_notification_of_loss",
"services"
] | Which services have been used more than twice in first notification of loss? Return the service name. | SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 | medium |
905 | insurance_fnol | [
"claims",
"settlements"
] | What is the effective date of the claim that has the largest amount of total settlement? | SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 | extra |
906 | insurance_fnol | [
"claims",
"settlements"
] | Find the claim that has the largest total settlement amount. Return the effective date of the claim. | SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 | extra |
907 | insurance_fnol | [
"customers",
"customers_policies"
] | How many policies are listed for the customer named "Dayana Robel"? | SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | medium |
908 | insurance_fnol | [
"customers",
"customers_policies"
] | Count the total number of policies used by the customer named "Dayana Robel". | SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | medium |
909 | insurance_fnol | [
"customers",
"customers_policies"
] | What is the name of the customer who has the most policies listed? | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 | extra |
910 | insurance_fnol | [
"customers",
"customers_policies"
] | Which customer uses the most policies? Give me the customer name. | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 | extra |
911 | insurance_fnol | [
"available_policies",
"customers",
"customers_policies"
] | What are all the policy types of the customer named "Dayana Robel"? | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" | hard |
912 | insurance_fnol | [
"available_policies",
"customers",
"customers_policies"
] | Tell me the types of the policy used by the customer named "Dayana Robel". | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" | hard |
913 | insurance_fnol | [
"available_policies",
"customers",
"customers_policies"
] | What are all the policy types of the customer that has the most policies listed? | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) | extra |
914 | insurance_fnol | [
"available_policies",
"customers",
"customers_policies"
] | List all the policy types used by the customer enrolled in the most policies. | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) | extra |
915 | insurance_fnol | [
"services"
] | List all the services in the alphabetical order. | SELECT service_name FROM services ORDER BY service_name | easy |
916 | insurance_fnol | [
"services"
] | Give me a list of all the service names sorted alphabetically. | SELECT service_name FROM services ORDER BY service_name | easy |
917 | insurance_fnol | [
"services"
] | How many services are there? | SELECT count(*) FROM services | easy |
918 | insurance_fnol | [
"services"
] | Count the total number of available services. | SELECT count(*) FROM services | easy |
919 | insurance_fnol | [
"first_notification_of_loss",
"customers"
] | Find the names of users who do not have a first notification of loss record. | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id | hard |
920 | insurance_fnol | [
"first_notification_of_loss",
"customers"
] | Which customers do not have a first notification of loss record? Give me the customer names. | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id | hard |
921 | insurance_fnol | [
"first_notification_of_loss",
"customers",
"services"
] | Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy". | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy" | extra |
922 | insurance_fnol | [
"first_notification_of_loss",
"customers",
"services"
] | Which customers have used the service named "Close a policy" or "Upgrade a policy"? Give me the customer names. | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy" | extra |
923 | insurance_fnol | [
"first_notification_of_loss",
"customers",
"services"
] | Find the names of customers who have used both the service "Close a policy" and the service "New policy application". | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application" | extra |
924 | insurance_fnol | [
"first_notification_of_loss",
"customers",
"services"
] | Which customers have used both the service named "Close a policy" and the service named "Upgrade a policy"? Give me the customer names. | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application" | extra |
925 | insurance_fnol | [
"customers"
] | Find the IDs of customers whose name contains "Diana". | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | medium |
926 | insurance_fnol | [
"customers"
] | What are the IDs of customers who have "Diana" in part of their names? | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | medium |
927 | insurance_fnol | [
"settlements"
] | What are the maximum and minimum settlement amount on record? | SELECT max(settlement_amount) , min(settlement_amount) FROM settlements | medium |
928 | insurance_fnol | [
"settlements"
] | Find the maximum and minimum settlement amount. | SELECT max(settlement_amount) , min(settlement_amount) FROM settlements | medium |
929 | insurance_fnol | [
"customers"
] | List all the customers in increasing order of IDs. | SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC | medium |
930 | insurance_fnol | [
"customers"
] | What is the ordered list of customer ids? | SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC | medium |
931 | insurance_fnol | [
"customers",
"customers_policies"
] | Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana" | SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" | hard |
932 | insurance_fnol | [
"customers",
"customers_policies"
] | What are the open and close dates of all the policies used by the customer who have "Diana" in part of their names? | SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" | hard |
933 | medicine_enzyme_interaction | [
"enzyme"
] | How many kinds of enzymes are there? | SELECT count(*) FROM enzyme | easy |
934 | medicine_enzyme_interaction | [
"enzyme"
] | What is the total count of enzymes? | SELECT count(*) FROM enzyme | easy |
935 | medicine_enzyme_interaction | [
"enzyme"
] | List the name of enzymes in descending lexicographical order. | SELECT name FROM enzyme ORDER BY name DESC | easy |
936 | medicine_enzyme_interaction | [
"enzyme"
] | What are the names of enzymes in descending order? | SELECT name FROM enzyme ORDER BY name DESC | easy |
937 | medicine_enzyme_interaction | [
"enzyme"
] | List the names and the locations that the enzymes can make an effect. | SELECT name , LOCATION FROM enzyme | medium |
938 | medicine_enzyme_interaction | [
"enzyme"
] | What are the names and locations of all enzymes listed? | SELECT name , LOCATION FROM enzyme | medium |
939 | medicine_enzyme_interaction | [
"enzyme"
] | What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes? | SELECT max(OMIM) FROM enzyme | easy |
940 | medicine_enzyme_interaction | [
"enzyme"
] | What is the maximum OMIM value in the database? | SELECT max(OMIM) FROM enzyme | easy |
941 | medicine_enzyme_interaction | [
"enzyme"
] | What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'? | SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol' | medium |
942 | medicine_enzyme_interaction | [
"enzyme"
] | What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'? | SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol' | medium |
943 | medicine_enzyme_interaction | [
"enzyme"
] | What are the names of enzymes who does not produce 'Heme'? | SELECT name FROM enzyme WHERE product != 'Heme' | easy |
944 | medicine_enzyme_interaction | [
"enzyme"
] | What are the names of enzymes whose product is not 'Heme'? | SELECT name FROM enzyme WHERE product != 'Heme' | easy |
945 | medicine_enzyme_interaction | [
"medicine"
] | What are the names and trade names of the medicines which has 'Yes' value in the FDA record? | SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes' | medium |
946 | medicine_enzyme_interaction | [
"medicine"
] | What are the names and trade names of the medcines that are FDA approved? | SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes' | medium |
947 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"medicine",
"enzyme"
] | What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'? | SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | hard |
948 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"medicine",
"enzyme"
] | What are the names of the enzymes used in the medicine Amisulpride that acts as inhibitors? | SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | hard |
949 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What are the ids and names of the medicine that can interact with two or more enzymes? | SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 | medium |
950 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | For every medicine id, what are the names of the medicines that can interact with more than one enzyme? | SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 | medium |
951 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with. | SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC | hard |
952 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions? | SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC | hard |
953 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"enzyme"
] | What is the id and name of the enzyme with most number of medicines that can interact as 'activator'? | SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1 | extra |
954 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"enzyme"
] | What is the id and name of the enzyme that can interact with the most medicines as an activator? | SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1 | extra |
955 | medicine_enzyme_interaction | [
"enzyme",
"medicine",
"medicine_enzyme_interaction"
] | What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' | hard |
956 | medicine_enzyme_interaction | [
"enzyme",
"medicine",
"medicine_enzyme_interaction"
] | What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' | hard |
957 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction"
] | What is the most common interaction type between enzymes and medicine? And how many are there? | SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1 | hard |
958 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction"
] | What are the most common types of interactions between enzymes and medicine, and how many types are there? | SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1 | hard |
959 | medicine_enzyme_interaction | [
"medicine"
] | How many medicines have the FDA approval status 'No' ? | SELECT count(*) FROM medicine WHERE FDA_approved = 'No' | easy |
960 | medicine_enzyme_interaction | [
"medicine"
] | How many medicines were not approved by the FDA? | SELECT count(*) FROM medicine WHERE FDA_approved = 'No' | easy |
961 | medicine_enzyme_interaction | [
"enzyme",
"medicine_enzyme_interaction"
] | How many enzymes do not have any interactions? | SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); | extra |
962 | medicine_enzyme_interaction | [
"enzyme",
"medicine_enzyme_interaction"
] | What is the count of enzymes without any interactions? | SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); | extra |
963 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What is the id and trade name of the medicines can interact with at least 3 enzymes? | SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3 | medium |
964 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What are the ids and trade names of the medicine that can interact with at least 3 enzymes? | SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3 | medium |
965 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"enzyme"
] | What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | medium |
966 | medicine_enzyme_interaction | [
"medicine_enzyme_interaction",
"enzyme"
] | What are the different names, locations, and products of the enzymes that are capable inhibitor interactions? | SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | medium |
967 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes. | SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | extra |
968 | medicine_enzyme_interaction | [
"medicine",
"medicine_enzyme_interaction"
] | What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes? | SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | extra |
969 | medicine_enzyme_interaction | [
"enzyme",
"medicine",
"medicine_enzyme_interaction"
] | Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'. | SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | extra |
970 | medicine_enzyme_interaction | [
"enzyme",
"medicine",
"medicine_enzyme_interaction"
] | What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'? | SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | extra |
971 | medicine_enzyme_interaction | [
"medicine"
] | How many distinct FDA approval statuses are there for the medicines? | SELECT count(DISTINCT FDA_approved) FROM medicine | easy |
972 | medicine_enzyme_interaction | [
"medicine"
] | How many different FDA approval statuses exist for medicines? | SELECT count(DISTINCT FDA_approved) FROM medicine | easy |
973 | medicine_enzyme_interaction | [
"enzyme"
] | Which enzyme names have the substring "ALA"? | SELECT name FROM enzyme WHERE name LIKE "%ALA%" | medium |
974 | medicine_enzyme_interaction | [
"enzyme"
] | What are the names of enzymes that include the string 'ALA'? | SELECT name FROM enzyme WHERE name LIKE "%ALA%" | medium |
975 | medicine_enzyme_interaction | [
"medicine"
] | find the number of medicines offered by each trade. | SELECT trade_name , count(*) FROM medicine GROUP BY trade_name | medium |
976 | medicine_enzyme_interaction | [
"medicine"
] | How many medicines are offered by each trade name? | SELECT trade_name , count(*) FROM medicine GROUP BY trade_name | medium |
977 | university_basketball | [
"university"
] | List all schools and their nicknames in the order of founded year. | SELECT school , nickname FROM university ORDER BY founded | medium |
978 | university_basketball | [
"university"
] | What are the different schools and their nicknames, ordered by their founding years? | SELECT school , nickname FROM university ORDER BY founded | medium |
979 | university_basketball | [
"university"
] | List all public schools and their locations. | SELECT school , LOCATION FROM university WHERE affiliation = 'Public' | medium |
980 | university_basketball | [
"university"
] | What are the public schools and what are their locations? | SELECT school , LOCATION FROM university WHERE affiliation = 'Public' | medium |
981 | university_basketball | [
"university"
] | When was the school with the largest enrollment founded? | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | medium |
982 | university_basketball | [
"university"
] | Return the founded year for the school with the largest enrollment. | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | medium |
983 | university_basketball | [
"university"
] | Find the founded year of the newest non public school. | SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 | hard |
984 | university_basketball | [
"university"
] | What is the founded year of the non public school that was founded most recently? | SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 | hard |
985 | university_basketball | [
"basketball_match"
] | How many schools are in the basketball match? | SELECT count(DISTINCT school_id) FROM basketball_match | easy |
986 | university_basketball | [
"basketball_match"
] | Count the number of schools that have had basketball matches. | SELECT count(DISTINCT school_id) FROM basketball_match | easy |
987 | university_basketball | [
"basketball_match"
] | What is the highest acc percent score in the competition? | SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 | medium |
988 | university_basketball | [
"basketball_match"
] | Return the highest acc percent across all basketball matches. | SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 | medium |
989 | university_basketball | [
"university",
"basketball_match"
] | What is the primary conference of the school that has the lowest acc percent score in the competition? | SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | hard |
990 | university_basketball | [
"university",
"basketball_match"
] | Return the primary conference of the school with the lowest acc percentage score. | SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | hard |
991 | university_basketball | [
"university",
"basketball_match"
] | What is the team name and acc regular season score of the school that was founded for the longest time? | SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1 | hard |
992 | university_basketball | [
"university",
"basketball_match"
] | Return the name of the team and the acc during the regular season for the school that was founded the earliest. | SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1 | hard |
993 | university_basketball | [
"university",
"basketball_match"
] | Find the location and all games score of the school that has Clemson as its team name. | SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' | medium |
994 | university_basketball | [
"university",
"basketball_match"
] | What are the all games score and location of the school called Clemson? | SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' | medium |
995 | university_basketball | [
"university"
] | What are the average enrollment size of the universities that are founded before 1850? | SELECT avg(enrollment) FROM university WHERE founded < 1850 | easy |
996 | university_basketball | [
"university"
] | Return the average enrollment of universities founded before 1850. | SELECT avg(enrollment) FROM university WHERE founded < 1850 | easy |
997 | university_basketball | [
"university"
] | Show the enrollment and primary_conference of the oldest college. | SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1 | medium |
998 | university_basketball | [
"university"
] | What are the enrollment and primary conference for the university which was founded the earliest? | SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1 | medium |
999 | university_basketball | [
"university"
] | What is the total and minimum enrollment of all schools? | SELECT sum(enrollment) , min(enrollment) FROM university | medium |
Subsets and Splits