instruction stringlengths 1.07k 3.45k | output stringlengths 19 508 | system stringclasses 1
value |
|---|---|---|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM head WHERE age > 56; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT name, born_state, age FROM head ORDER BY age; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT creation, name, budget_in_billions FROM department; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT max(budget_in_billions), min(budget_in_billions) FROM department; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT name FROM head WHERE born_state != 'California'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.creation FROM department AS t1 JOIN management AS t2 ON t1.department_id = t2.department_id JOIN head AS t3 ON t2.head_id = t3.head_id WHERE t3.born_state = 'Alabama'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT born_state FROM head GROUP BY born_state HAVING count(*) >= 3; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.name, t1.num_employees FROM department AS t1 JOIN management AS t2 ON t1.department_id = t2.department_id WHERE t2.temporary_acting = 'Yes'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(DISTINCT temporary_acting) FROM management; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management); | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.age FROM management AS t2 JOIN head AS t1 ON t1.head_id = t2.head_id WHERE t2.temporary_acting = 'Yes'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t3.born_state FROM department AS t1 JOIN management AS t2 ON t1.department_id = t2.department_id JOIN head AS t3 ON t2.head_id = t3.head_id WHERE t1.name = 'Treasury' INTERSECT SELECT t3.born_state FROM department AS t1 JOIN management AS t2 ON t1.department_id = t2.department_id JOIN head AS t3 ON t2.head_id = ... | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.department_id, t1.name, count(*) FROM management AS t2 JOIN department AS t1 ON t1.department_id = t2.department_id GROUP BY t1.department_id HAVING count(*) > 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT head_id, name FROM head WHERE name LIKE '%Ha%'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM farm; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM farm; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT total_horses FROM farm ORDER BY total_horses ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT total_horses FROM farm ORDER BY total_horses ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT hosts FROM farm_competition WHERE theme != 'Aliens'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT hosts FROM farm_competition WHERE theme != 'Aliens'; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT theme FROM farm_competition ORDER BY YEAR ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT theme FROM farm_competition ORDER BY YEAR ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT avg(working_horses) FROM farm WHERE total_horses > 5000; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT avg(working_horses) FROM farm WHERE total_horses > 5000; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT max(cows), min(cows) FROM farm; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT max(cows), min(cows) FROM farm; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(DISTINCT status) FROM city; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(DISTINCT status) FROM city; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city ORDER BY population DESC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city ORDER BY population DESC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name, status FROM city ORDER BY population DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name, status FROM city ORDER BY population DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.year, t1.official_name FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.year, t1.official_name FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.official_name FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id GROUP BY t2.host_city_id HAVING count(*) > 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.official_name FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id GROUP BY t2.host_city_id HAVING count(*) > 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.status FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id GROUP BY t2.host_city_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.status FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id GROUP BY t2.host_city_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.theme FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id WHERE t1.population > 1000; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.theme FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id = t2.host_city_id WHERE t1.population > 1000; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status, avg(population) FROM city GROUP BY status; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status, avg(population) FROM city GROUP BY status; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city GROUP BY status ORDER BY count(*) ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city GROUP BY status ORDER BY count(*) ASC; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city GROUP BY status ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city GROUP BY status ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city WHERE city_id NOT IN (SELECT host_city_id FROM farm_competition); | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city WHERE city_id NOT IN (SELECT host_city_id FROM farm_competition); | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city WHERE population > 1500 INTERSECT SELECT status FROM city WHERE population < 500; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT status FROM city WHERE population > 1500 INTERSECT SELECT status FROM city WHERE population < 500; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city WHERE population > 1500 OR population < 500; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT official_name FROM city WHERE population > 1500 OR population < 500; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT census_ranking FROM city WHERE status != "Village"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT census_ranking FROM city WHERE status != "Village"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.course_name FROM courses AS t1 JOIN student_course_registrations AS t2 ON t1.course_id = t2.course_id GROUP BY t1.course_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.course_name FROM courses AS t1 JOIN student_course_registrations AS t2 ON t1.course_id = t2.course_id GROUP BY t1.course_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.first_name, t2.last_name FROM candidates AS t1 JOIN people AS t2 ON t1.candidate_id = t2.person_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.first_name, t2.last_name FROM candidates AS t1 JOIN people AS t2 ON t1.candidate_id = t2.person_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance); | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance); | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.student_id, t2.course_name FROM student_course_registrations AS t1 JOIN courses AS t2 ON t1.course_id = t2.course_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.student_details FROM student_course_registrations AS t1 JOIN students AS t2 ON t1.student_id = t2.student_id ORDER BY t1.registration_date DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.student_details FROM student_course_registrations AS t1 JOIN students AS t2 ON t1.student_id = t2.student_id ORDER BY t1.registration_date DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM courses AS t1 JOIN student_course_attendance AS t2 ON t1.course_id = t2.course_id WHERE t1.course_name = "English"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM courses AS t1 JOIN student_course_attendance AS t2 ON t1.course_id = t2.course_id WHERE t1.course_name = "English"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM courses AS t1 JOIN student_course_attendance AS t2 ON t1.course_id = t2.course_id WHERE t2.student_id = 171; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT count(*) FROM courses AS t1 JOIN student_course_attendance AS t2 ON t1.course_id = t2.course_id WHERE t2.student_id = 171; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.candidate_id FROM people AS t1 JOIN candidates AS t2 ON t1.person_id = t2.candidate_id WHERE t1.email_address = "stanley.monahan@example.org"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t2.candidate_id FROM people AS t1 JOIN candidates AS t2 ON t1.person_id = t2.candidate_id WHERE t1.email_address = "stanley.monahan@example.org"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.student_details FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id GROUP BY t1.student_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.student_details FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id GROUP BY t1.student_id ORDER BY count(*) DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.student_id, count(*) FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id GROUP BY t1.student_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t1.student_id, count(*) FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id GROUP BY t1.student_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t3.course_name, count(*) FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id JOIN courses AS t3 ON t2.course_id = t3.course_id GROUP BY t2.course_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t3.course_name, count(*) FROM students AS t1 JOIN student_course_registrations AS t2 ON t1.student_id = t2.student_id JOIN courses AS t3 ON t2.course_id = t3.course_id GROUP BY t2.course_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t3.cell_mobile_number FROM candidates AS t1 JOIN candidate_assessments AS t2 ON t1.candidate_id = t2.candidate_id JOIN people AS t3 ON t1.candidate_id = t3.person_id WHERE t2.asessment_outcome_code = "Fail"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT t3.cell_mobile_number FROM candidates AS t1 JOIN candidate_assessments AS t2 ON t1.candidate_id = t2.candidate_id JOIN people AS t3 ON t1.candidate_id = t3.person_id WHERE t2.asessment_outcome_code = "Fail"; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance WHERE course_id = 301; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance WHERE course_id = 301; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.city FROM addresses AS t1 JOIN people_addresses AS t2 ON t1.address_id = t2.address_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.city FROM addresses AS t1 JOIN people_addresses AS t2 ON t1.address_id = t2.address_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.city FROM addresses AS t1 JOIN people_addresses AS t2 ON t1.address_id = t2.address_id JOIN students AS t3 ON t2.person_id = t3.student_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT DISTINCT t1.city FROM addresses AS t1 JOIN people_addresses AS t2 ON t1.address_id = t2.address_id JOIN students AS t3 ON t2.person_id = t3.student_id; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT course_name FROM courses ORDER BY course_name; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT course_name FROM courses ORDER BY course_name; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT first_name FROM people ORDER BY first_name; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT first_name FROM people ORDER BY first_name; | You are an experienced and professional database administrator.
|
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question].
[Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided t... | SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance; | You are an experienced and professional database administrator.
|
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 5