db_id
stringlengths
4
31
text
stringlengths
370
4.84k
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the name of ships in ascending order of tonnage. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship order by tonnage asc
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: what are the names of the ships ordered by ascending tonnage? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship order by tonnage asc
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the type and nationality of ships? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , nationality from ship
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the types and nationalities of every ship? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , nationality from ship
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the name of ships whose nationality is not "United States". | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where nationality != 'United States'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of the ships that are not from the United States? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where nationality != 'United States'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the name of ships whose nationality is either United States or United Kingdom. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where nationality = 'United States' or nationality = 'United Kingdom'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of the ships that are from either the US or the UK? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where nationality = 'United States' or nationality = 'United Kingdom'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name of the ship with the largest tonnage? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship order by tonnage desc limit 1
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the ship with the largest amount of tonnage called? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship order by tonnage desc limit 1
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show different types of ships and the number of ships of each type. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , count ( * ) from ship group by type
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each type, how many ships are there? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , count ( * ) from ship group by type
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Please show the most common type of ships. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type from ship group by type order by count ( * ) desc limit 1
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the most common type of ships? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type from ship group by type order by count ( * ) desc limit 1
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the nations that have more than two ships. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select nationality from ship group by nationality having count ( * ) > 2
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the nations that have more than two ships? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select nationality from ship group by nationality having count ( * ) > 2
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show different types of ships and the average tonnage of ships of each type. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , avg ( tonnage ) from ship group by type
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each type, what is the average tonnage? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type , avg ( tonnage ) from ship group by type
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show codes and fates of missions, and names of ships involved. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select mission.code , mission.fate , ship.name from mission join ship on mission.ship_id = ship.ship_id
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the mission codes, fates, and names of the ships involved? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select mission.code , mission.fate , ship.name from mission join ship on mission.ship_id = ship.ship_id
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names of ships involved in a mission launched after 1928. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select ship.name from mission join ship on mission.ship_id = ship.ship_id where mission.launched_year > 1928
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of ships that were involved in a mission launched after 1928? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select ship.name from mission join ship on mission.ship_id = ship.ship_id where mission.launched_year > 1928
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the distinct fate of missions that involve ships with nationality "United States" | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select distinct mission.fate from mission join ship on mission.ship_id = ship.ship_id where ship.nationality = 'United States'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different fates of the mission that involved ships from the United States? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select distinct mission.fate from mission join ship on mission.ship_id = ship.ship_id where ship.nationality = 'United States'
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the name of ships that are not involved in any mission | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where ship_id not in ( select ship_id from mission )
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of the ships that are not involved in any missions? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select name from ship where ship_id not in ( select ship_id from mission )
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000. | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type from ship where tonnage > 6000 intersect select type from ship where tonnage < 4000
ship_mission
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000? | mission : mission_id , ship_id , code , launched_year , location , speed_knots , fate | ship : ship_id , name , type , nationality , tonnage | mission.ship_id = ship.ship_id | ### Response: select type from ship where tonnage > 6000 intersect select type from ship where tonnage < 4000
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of students in total. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are there? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the last names of students studying in room 111. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select lastname from list where classroom = 111
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the last names of students in room 111? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select lastname from list where classroom = 111
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the first names of students studying in room 108. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select firstname from list where classroom = 108
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the first names of students in room 108? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select firstname from list where classroom = 108
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the first names of students studying in room 107? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname from list where classroom = 107
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the first names of all the students in room 107. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname from list where classroom = 107
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each classroom report the grade that is taught in it. Report just the classroom number and the grade number. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom , grade from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the grade number and classroom number of each class in the list? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom , grade from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which grade is studying in classroom 103? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct grade from list where classroom = 103
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the grade taught in classroom 103. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct grade from list where classroom = 103
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the grade studying in room 105. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct grade from list where classroom = 105
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which grade is studying in room 105? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct grade from list where classroom = 105
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which classrooms are used by grade 4? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom from list where grade = 4
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the classrooms in which grade 4 is studying. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom from list where grade = 4
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which classrooms are used by grade 5? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom from list where grade = 5
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show me the classrooms grade 5 is using. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct classroom from list where grade = 5
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the last names of the teachers that teach fifth grade. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct teachers.lastname from list join teachers on list.classroom = teachers.classroom where grade = 5
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: what are the last names of the teachers who teach grade 5? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct teachers.lastname from list join teachers on list.classroom = teachers.classroom where grade = 5
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the first names of the teachers that teach first grade. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct teachers.firstname from list join teachers on list.classroom = teachers.classroom where grade = 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the first names of the teachers who teach grade 1? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct teachers.firstname from list join teachers on list.classroom = teachers.classroom where grade = 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the first names of all the teachers that teach in classroom 110. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select firstname from teachers where classroom = 110
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which teachers teach in classroom 110? Give me their first names. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select firstname from teachers where classroom = 110
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the last names of teachers teaching in classroom 109. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select lastname from teachers where classroom = 109
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which teachers teach in classroom 109? Give me their last names. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select lastname from teachers where classroom = 109
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Report the first name and last name of all the teachers. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname , lastname from teachers
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the first name and last name of all the teachers? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname , lastname from teachers
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Report the first name and last name of all the students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname , lastname from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show each student's first name and last name. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct firstname , lastname from list
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all students taught by OTHA MOYER. Output the first and last names of the students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'OTHA' and teachers.lastname = 'MOYER'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'OTHA' and teachers.lastname = 'MOYER'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all students taught by MARROTTE KIRK. Output first and last names of students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'MARROTTE' and teachers.lastname = 'KIRK'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which are the first and last names of the students taught by MARROTTE KIRK? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'MARROTTE' and teachers.lastname = 'KIRK'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the first and last name of all the teachers that teach EVELINA BROMLEY. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.firstname , teachers.lastname from list join teachers on list.classroom = teachers.classroom where list.firstname = 'EVELINA' and list.lastname = 'BROMLEY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.firstname , teachers.lastname from list join teachers on list.classroom = teachers.classroom where list.firstname = 'EVELINA' and list.lastname = 'BROMLEY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the last names of all the teachers that teach GELL TAMI. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.lastname from list join teachers on list.classroom = teachers.classroom where list.firstname = 'GELL' and list.lastname = 'TAMI'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the last names of the teachers who teach the student called GELL TAMI? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.lastname from list join teachers on list.classroom = teachers.classroom where list.firstname = 'GELL' and list.lastname = 'TAMI'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students does LORIA ONDERSMA teaches? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'LORIA' and teachers.lastname = 'ONDERSMA'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Count the number of students the teacher LORIA ONDERSMA teaches. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'LORIA' and teachers.lastname = 'ONDERSMA'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students does KAWA GORDON teaches? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'KAWA' and teachers.lastname = 'GORDON'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of students taught by the teacher KAWA GORDON. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'KAWA' and teachers.lastname = 'GORDON'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of students taught by TARRING LEIA. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'TARRING' and teachers.lastname = 'LEIA'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are taught by teacher TARRING LEIA? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'TARRING' and teachers.lastname = 'LEIA'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many teachers does the student named CHRISSY NABOZNY have? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where list.firstname = 'CHRISSY' and list.lastname = 'NABOZNY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of teachers who teach the student called CHRISSY NABOZNY. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where list.firstname = 'CHRISSY' and list.lastname = 'NABOZNY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many teachers does the student named MADLOCK RAY have? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where list.firstname = 'MADLOCK' and list.lastname = 'RAY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of teachers who teach the student called MADLOCK RAY. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) from list join teachers on list.classroom = teachers.classroom where list.firstname = 'MADLOCK' and list.lastname = 'RAY'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where list.grade = 1 except select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'OTHA' and teachers.lastname = 'MOYER'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where list.grade = 1 except select list.firstname , list.lastname from list join teachers on list.classroom = teachers.classroom where teachers.firstname = 'OTHA' and teachers.lastname = 'MOYER'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the last names of the students in third grade that are not taught by COVIN JEROME. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct list.lastname from list join teachers on list.classroom = teachers.classroom where list.grade = 3 and teachers.firstname != 'COVIN' and teachers.lastname != 'JEROME'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select distinct list.lastname from list join teachers on list.classroom = teachers.classroom where list.grade = 3 and teachers.firstname != 'COVIN' and teachers.lastname != 'JEROME'
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select grade , count ( distinct classroom ) , count ( * ) from list group by grade
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select grade , count ( distinct classroom ) , count ( * ) from list group by grade
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each classroom, report the classroom number and the number of grades using it. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( distinct grade ) from list group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each classroom, show the classroom number and count the number of distinct grades that use the room. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( distinct grade ) from list group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which classroom has the most students? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom from list group by classroom order by count ( * ) desc limit 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the classroom that the most students use. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom from list group by classroom order by count ( * ) desc limit 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Report the number of students in each classroom. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each classroom, show the classroom number and find how many students are using it. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each grade 0 classroom, report the total number of students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list where grade = '0' group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each grade 0 classroom, return the classroom number and the count of students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list where grade = '0' group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Report the total number of students for each fourth-grade classroom. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list where grade = '4' group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each fourth-grade classroom, show the classroom number and the total number of students using it. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select classroom , count ( * ) from list where grade = '4' group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name of the teacher who teaches the largest number of students. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.firstname , teachers.lastname from list join teachers on list.classroom = teachers.classroom group by teachers.firstname , teachers.lastname order by count ( * ) desc limit 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which teacher teaches the most students? Give me the first name and last name of the teacher. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select teachers.firstname , teachers.lastname from list join teachers on list.classroom = teachers.classroom group by teachers.firstname , teachers.lastname order by count ( * ) desc limit 1
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of students in one classroom. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) , classroom from list group by classroom
student_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students does one classroom have? | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | ### Response: select count ( * ) , classroom from list group by classroom
company_employee
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many companies are headquartered in the US? | people : people_id , age , name , nationality , graduation_college | company : company_id , name , headquarters , industry , sales_in_billion , profits_in_billion , assets_in_billion , market_value_in_billion | employment : company_id , people_id , year_working | employment.people_id = people.people_id | employment.company_id = company.company_id | ### Response: select count ( * ) from company where headquarters = 'USA'
company_employee
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the names of companies by ascending number of sales. | people : people_id , age , name , nationality , graduation_college | company : company_id , name , headquarters , industry , sales_in_billion , profits_in_billion , assets_in_billion , market_value_in_billion | employment : company_id , people_id , year_working | employment.people_id = people.people_id | employment.company_id = company.company_id | ### Response: select name from company order by sales_in_billion asc
company_employee
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the headquarters and industries of all companies? | people : people_id , age , name , nationality , graduation_college | company : company_id , name , headquarters , industry , sales_in_billion , profits_in_billion , assets_in_billion , market_value_in_billion | employment : company_id , people_id , year_working | employment.people_id = people.people_id | employment.company_id = company.company_id | ### Response: select headquarters , industry from company
company_employee
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the names of companies in the banking or retailing industry? | people : people_id , age , name , nationality , graduation_college | company : company_id , name , headquarters , industry , sales_in_billion , profits_in_billion , assets_in_billion , market_value_in_billion | employment : company_id , people_id , year_working | employment.people_id = people.people_id | employment.company_id = company.company_id | ### Response: select name from company where industry = 'Banking' or industry = 'Retailing'