db_id stringclasses 40
values | query stringlengths 22 608 | question stringlengths 22 185 |
|---|---|---|
vehicle_rent | SELECT DISTINCT type_of_powertrain FROM vehicles | What are the different types of powertrains? |
vehicle_rent | SELECT name , type_of_powertrain , annual_fuel_cost FROM vehicles WHERE model_year = 2013 OR model_year = 2014 | Show name, type of powertrain, and annual fuel cost for all vehicles with model year 2013 or 2014. |
vehicle_rent | SELECT name , type_of_powertrain , annual_fuel_cost FROM vehicles WHERE model_year = 2013 OR model_year = 2014 | What are the names, types of powertrains, and yearly fuel costs for vehicles with model years in either 2013 2014? |
vehicle_rent | SELECT type_of_powertrain FROM vehicles WHERE model_year = 2014 INTERSECT SELECT type_of_powertrain FROM vehicles WHERE model_year = 2013 | Show types of powertrain with vehicles both from 2014 and 2013. |
vehicle_rent | SELECT type_of_powertrain FROM vehicles WHERE model_year = 2014 INTERSECT SELECT type_of_powertrain FROM vehicles WHERE model_year = 2013 | What are the types of powertrains that have vehicles that were made in both 2013 and 2014? |
vehicle_rent | SELECT type_of_powertrain , count(*) FROM vehicles GROUP BY type_of_powertrain | Show all types of powertrain and the number of vehicles in each type. |
vehicle_rent | SELECT type_of_powertrain , count(*) FROM vehicles GROUP BY type_of_powertrain | How many vehicles have each type of powertrain? |
vehicle_rent | SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count(*) DESC LIMIT 1 | What is the type of powertrain with most number of vehicles. |
vehicle_rent | SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count(*) DESC LIMIT 1 | Which type of powertrain is most common? |
vehicle_rent | SELECT min(annual_fuel_cost) , max(annual_fuel_cost) , avg(annual_fuel_cost) FROM vehicles | Show minimum, maximum, and average annual fuel cost for all vehicles. |
vehicle_rent | SELECT min(annual_fuel_cost) , max(annual_fuel_cost) , avg(annual_fuel_cost) FROM vehicles | What are the minimum, maximum, and average annual fuel costs across all vehicles? |
vehicle_rent | SELECT name , model_year FROM vehicles WHERE city_fuel_economy_rate <= highway_fuel_economy_rate | Show name and model year for vehicles with city fuel economy rate less than or equal to highway fuel economy rate. |
vehicle_rent | SELECT name , model_year FROM vehicles WHERE city_fuel_economy_rate <= highway_fuel_economy_rate | What are the names and model years for vehicles that have a city fuel economy rate less than or equal to its highway fuel economy rate? |
vehicle_rent | SELECT type_of_powertrain , avg(annual_fuel_cost) FROM vehicles GROUP BY type_of_powertrain HAVING count(*) >= 2 | Show the type of powertrain with at least two vehicles, and the average annual fuel cost for vehicles in each such type. |
vehicle_rent | SELECT type_of_powertrain , avg(annual_fuel_cost) FROM vehicles GROUP BY type_of_powertrain HAVING count(*) >= 2 | What are the types of powertrains for which there are two or more vehicles, and what are their average annual fuel costs? |
vehicle_rent | SELECT name , age , membership_credit FROM customers | Show the name, age, membership credit for all customers? |
vehicle_rent | SELECT name , age , membership_credit FROM customers | What are the names, ages, and membership credits for all customers? |
vehicle_rent | SELECT name , age FROM customers ORDER BY membership_credit DESC LIMIT 1 | Show the name and age of the customer with maximum membership credit. |
vehicle_rent | SELECT name , age FROM customers ORDER BY membership_credit DESC LIMIT 1 | What is the name and age of the customer with the most membership credit? |
vehicle_rent | SELECT avg(age) FROM customers WHERE membership_credit > (SELECT avg(membership_credit) FROM customers) | What is the average age for customers with a membership credit above the average? |
vehicle_rent | SELECT avg(age) FROM customers WHERE membership_credit > (SELECT avg(membership_credit) FROM customers) | Return the average age for customers who have membership above the average across all customers. |
vehicle_rent | SELECT * FROM discount | Show all information for all discounts. |
vehicle_rent | SELECT * FROM discount | Return all information about discounts. |
vehicle_rent | SELECT T2.name , sum(T1.total_hours) FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id | Show the name and total hours of renting for each vehicle. |
vehicle_rent | SELECT T2.name , sum(T1.total_hours) FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id | What are the names and total rental hours for each vehicle? |
vehicle_rent | SELECT name FROM vehicles WHERE id NOT IN (SELECT vehicles_id FROM renting_history) | Show the name of vehicles with no renting history. |
vehicle_rent | SELECT name FROM vehicles WHERE id NOT IN (SELECT vehicles_id FROM renting_history) | What are the names of vehicles that have never been rented? |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.id HAVING count(*) >= 2 | Show the name of customer with at least two renting history records. |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.id HAVING count(*) >= 2 | What are the names of customers who have two or more records of rental history? |
vehicle_rent | SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | Show the name and model year of the vehicle with most number of renting history records. |
vehicle_rent | SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | What is the name and model year of the vehicle which has been rented the most times? |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY sum(T1.total_hours) DESC | Show the vehicle name with a descending order of total hours of renting. |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY sum(T1.total_hours) DESC | What are the names of vehicles, sorted descending by total hours of renting? |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | What is the discount name with most number of renting history records? |
vehicle_rent | SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | Return the name of the discount that corresponds to the most rental history records. |
vehicle_rent | SELECT T2.name , T2.Type_of_powertrain FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T1.vehicles_id HAVING sum(T1.total_hours) > 30 | Find the name and powertrain type of the cars that rented for more than 30 total hours. |
vehicle_rent | SELECT T2.name , T2.Type_of_powertrain FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T1.vehicles_id HAVING sum(T1.total_hours) > 30 | What are the names and powertrain types of cars that have more than 30 total rental hours? |
vehicle_rent | SELECT avg(City_fuel_economy_rate) , avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain | Find the average city and highway fuel rates for cars with different powertrain types. |
vehicle_rent | SELECT avg(City_fuel_economy_rate) , avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain | What are the average city fuel economy rate, average highway fuel economy rate for different types of powertrains? |
cre_Students_Information_Systems | SELECT avg(amount_of_loan) FROM Student_Loans | What is the average amount of a student loan? |
cre_Students_Information_Systems | SELECT avg(amount_of_loan) FROM Student_Loans | Compute the average amount of student loans. |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) >= 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) < 2 | List the biographical data and student id for the students who take 2 or more classes and the students who have less than 2 detentions. |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) >= 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) < 2 | What are the biographical data and student id of the students who either took two or more classes and or have less than two detentions? |
cre_Students_Information_Systems | SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE '%data%' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE 'net%' | List the details of the teachers who teach some class whose detail has the substring 'data' but do not teach a class whose detail contains the prefix 'net' |
cre_Students_Information_Systems | SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE '%data%' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE 'net%' | Which teachers teach a class that has the substring 'data' in its detail but do not teach a class that has prefix 'net' in its detail? Give me the teacher details. |
cre_Students_Information_Systems | select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id) | List the biographical data of the students who never had a detention or student loan . |
cre_Students_Information_Systems | select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id) | Which students never had a detention or student loan ? Find their biographical data . |
cre_Students_Information_Systems | SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*) >= 2 ) | What are the loan amounts and loan dates of the students who have at least 2 achievements? |
cre_Students_Information_Systems | SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*) >= 2 ) | List the amount and date of loan for the students who have two or more achievements. |
cre_Students_Information_Systems | SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1 | List the detail and id of the teacher who teaches the most courses. |
cre_Students_Information_Systems | SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1 | What are the detail and id of the teacher who teaches the largest number of courses? |
cre_Students_Information_Systems | SELECT distinct(T1.detention_type_description) FROM Ref_Detention_Type AS T1 JOIN Detention AS T2 ON T1.detention_type_code = T2.detention_type_code | What are the distinct descriptions of all the detentions which have ever happened? |
cre_Students_Information_Systems | SELECT distinct(T1.detention_type_description) FROM Ref_Detention_Type AS T1 JOIN Detention AS T2 ON T1.detention_type_code = T2.detention_type_code | Return the distinct descriptions of all the detentions that have happened. |
cre_Students_Information_Systems | SELECT DISTINCT T1.student_details , T3.address_type_description FROM Students AS T1 JOIN Students_Addresses AS T2 ON T1.student_id = T2.student_id JOIN Ref_Address_Types AS T3 ON T2.address_type_code = T3.address_type_code | List the personal details and the address type descriptions of all the students. |
cre_Students_Information_Systems | SELECT DISTINCT T1.student_details , T3.address_type_description FROM Students AS T1 JOIN Students_Addresses AS T2 ON T1.student_id = T2.student_id JOIN Ref_Address_Types AS T3 ON T2.address_type_code = T3.address_type_code | What are the personal details and the address type descriptions of each student? |
cre_Students_Information_Systems | SELECT T1.address_details , T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id = T2.address_id JOIN Students AS T3 ON T2.student_id = T3.student_id | List the the address details and the biographical information of the students. |
cre_Students_Information_Systems | SELECT T1.address_details , T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id = T2.address_id JOIN Students AS T3 ON T2.student_id = T3.student_id | What are the address details and biographical information of each student? |
cre_Students_Information_Systems | SELECT T1.bio_data , T2.date_of_transcript FROM Students AS T1 JOIN Transcripts AS T2 ON T1.student_id = T2.student_id | List the biographical data and the date of the transcript of all the students. |
cre_Students_Information_Systems | SELECT T1.bio_data , T2.date_of_transcript FROM Students AS T1 JOIN Transcripts AS T2 ON T1.student_id = T2.student_id | What are the biographical data and the date of transcript issuance of each student? |
cre_Students_Information_Systems | SELECT count(DISTINCT student_id) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 | How many students got the most common result in the behavioral monitoring details? Also list the result details. |
cre_Students_Information_Systems | SELECT count(DISTINCT student_id) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 | Find the most common result in the behavioral monitoring details. What are the count and the details of this result? |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) INTERSECT SELECT... | Which students not only got the most common result but also got a result obtained by 3 students in behaviour monitoring? List the student's biographical data and details. |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) INTERSECT SELECT... | Find the biographical data and details of students who got not only the most common result but also a result that is obtained by 3 students in behaviour monitoring. |
cre_Students_Information_Systems | SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) EXCEPT SELECT T1.bio_data FROM Student... | Which students only got the most common result for his or her all behaviour monitoring details? List the students' biographical information. |
cre_Students_Information_Systems | select t1.bio_data from students as t1 join behaviour_monitoring as t2 on t1.student_id = t2.student_id where t2.behaviour_monitoring_details in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count(*) desc limit 1 ) except select t1.bio_data from student... | What is the biographical information of the students who got the most common result for their behaviour monitoring details ? |
cre_Students_Information_Systems | SELECT T1.bio_data , T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id | Which students have gone through any event? List the students' biographical data and event date. |
cre_Students_Information_Systems | SELECT T1.bio_data , T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id | Find the biographical data and event date for students who participated in any events. |
cre_Students_Information_Systems | SELECT count(*) , T2.event_type_code , T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code = T3.event_type_code GROUP BY T2.event_type_code ORDER BY count(*) DESC LIMIT 1 | How many students have joined in the most common type of event? List the number, the event type and description. |
cre_Students_Information_Systems | SELECT count(*) , T2.event_type_code , T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code = T3.event_type_code GROUP BY T2.event_type_code ORDER BY count(*) DESC LIMIT 1 | What is the type of event the most students joined? Give me the number of students, and the event type code and description. |
cre_Students_Information_Systems | SELECT T1.achievement_details , T2.achievement_type_description FROM Achievements AS T1 JOIN Ref_Achievement_Type AS T2 ON T1.achievement_type_code = T2.achievement_type_code | How are all the achievements described? List the achievement detail and the type description. |
cre_Students_Information_Systems | SELECT T1.achievement_details , T2.achievement_type_description FROM Achievements AS T1 JOIN Ref_Achievement_Type AS T2 ON T1.achievement_type_code = T2.achievement_type_code | What are the achievement detail and the type description of each achievements? |
cre_Students_Information_Systems | SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements ) | How many teachers have taught a student who has not won any achievements? |
cre_Students_Information_Systems | SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements ) | Count the number of teachers who have taught students who have never won an achievement. |
cre_Students_Information_Systems | SELECT date_of_transcript , transcript_details FROM Transcripts | List the date of the transcripts and the transcript details. |
cre_Students_Information_Systems | SELECT date_of_transcript , transcript_details FROM Transcripts | What are the date and detail of each transcript? |
cre_Students_Information_Systems | SELECT achievement_type_code , achievement_details , date_achievement FROM Achievements | List the achievement type code, achievement details and the date of the achievements. |
cre_Students_Information_Systems | SELECT achievement_type_code , achievement_details , date_achievement FROM Achievements | What are the type code, details, and date of each achievement? |
cre_Students_Information_Systems | SELECT datetime_detention_start , datetime_detention_end FROM Detention | Show the detention start time and end time of the detentions. |
cre_Students_Information_Systems | SELECT datetime_detention_start , datetime_detention_end FROM Detention | What are the starting time and ending time of each detention record? |
cre_Students_Information_Systems | SELECT bio_data FROM Students WHERE student_details LIKE '%Suite%' | Show the biographical information of the students whose details include the substring 'Suite'. |
cre_Students_Information_Systems | SELECT bio_data FROM Students WHERE student_details LIKE '%Suite%' | Which students have 'Suite' as a substring in their details? Give me their biographical information. |
cre_Students_Information_Systems | SELECT T1.teacher_details , T3.student_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Students AS T3 ON T2.student_id = T3.student_id | List the details for all the pairs of teachers and students who are in the same class. |
cre_Students_Information_Systems | SELECT T1.teacher_details , T3.student_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Students AS T3 ON T2.student_id = T3.student_id | What are the pairs of teachers and students who are in the same class? Give me the pairs of their details. |
cre_Students_Information_Systems | SELECT count(*) , teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1 | How many courses do teachers teach at most? Also find the id of the teacher who teaches the most. |
cre_Students_Information_Systems | SELECT count(*) , teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1 | Which teacher teaches the most courses? Give me the id of the teacher and the number of courses he or she teaches. |
cre_Students_Information_Systems | SELECT count(*) , student_id FROM Classes GROUP BY student_id ORDER BY count(*) DESC LIMIT 1 | How many courses do students take at most? Also find the id of the student who takes the most courses. |
cre_Students_Information_Systems | SELECT count(*) , student_id FROM Classes GROUP BY student_id ORDER BY count(*) DESC LIMIT 1 | Which student is taking the most courses? Give me the id of the student and the number of courses he or she is taking. |
cre_Students_Information_Systems | SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2 | Which students take 2 courses? List student id and details. |
cre_Students_Information_Systems | SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2 | What are the ids and details of the students who take 2 courses? |
cre_Students_Information_Systems | SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1 | What is the least common detention type? Show the type code and the description. |
cre_Students_Information_Systems | SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1 | Give me the type code and description of the least common detention type. |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id WHERE T2.amount_of_loan > ( SELECT avg(amount_of_loan) FROM Student_Loans ) | Which students have a student loan more than the average amount? List the students' biographical data and the details. |
cre_Students_Information_Systems | SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id WHERE T2.amount_of_loan > ( SELECT avg(amount_of_loan) FROM Student_Loans ) | Find the biographical data and details for students whose student loan is above the average amount. |
cre_Students_Information_Systems | SELECT date_of_loan FROM Student_Loans ORDER BY date_of_loan ASC LIMIT 1 | When was the earliest date of loan? |
cre_Students_Information_Systems | SELECT date_of_loan FROM Student_Loans ORDER BY date_of_loan ASC LIMIT 1 | Return the earliest date of loan in the record. |
cre_Students_Information_Systems | SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan ASC LIMIT 1 | Which student has the loan with the minimum value? List the student's biographical information. |
cre_Students_Information_Systems | SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan ASC LIMIT 1 | Find the biographical information of the student with the smallest student loan. |
cre_Students_Information_Systems | SELECT T1.date_of_transcript FROM Transcripts AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan DESC LIMIT 1 | When was the transcript issued for the student with loan of maximum value? |
cre_Students_Information_Systems | SELECT T1.date_of_transcript FROM Transcripts AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan DESC LIMIT 1 | What is the transcript issuance date for the student with the largest amount of loan? |
cre_Students_Information_Systems | SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Transcripts AS T3 ON T2.student_id = T3.student_id ORDER BY T3.date_of_transcript ASC LIMIT 1 | Which teachers have taught the student with the earliest transcript issuance? List the teacher details. |
Subsets and Splits
World Countries Non-English Languages
The query filters specific database entries based on a particular query pattern, providing limited insight as it simply retrieves rows that match a specific condition.