input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT state FROM park GROUP BY state HAVING count(*) > 2; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT state FROM park GROUP BY state HAVING count(*) > 2; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT count(*) FROM team_franchise WHERE active = 'Y'; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT count(*) FROM team_franchise WHERE active = 'Y'; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; |
Tables: all_star, appearances, manager_award, player_award, manager_award_vote, player_award_vote, batting, batting_postseason, player_college, fielding, fielding_outfield, fielding_postseason, hall_of_fame, home_game, manager, manager_half, player, park, pitching, pitching_postseason, salary, college, postseason, team... | SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT brand , name FROM camera_lens ORDER BY max_aperture DESC; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT id , color , name FROM photos; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT max(height) , avg(height) FROM mountain; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT avg(prominence) FROM mountain WHERE country = 'Morocco'; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT name , height , prominence FROM mountain WHERE range != 'Aberdare Range'; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING count(*) >= 2; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT count(DISTINCT brand) FROM camera_lens; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ); |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia'; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHE... |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT name , prominence FROM mountain EXCEPT SELECT T1.name , T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT name FROM camera_lens WHERE name LIKE "%Digital%"; |
Tables: mountain, camera_lens, photos
Columns: mountain.id, mountain.name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, camera_lens.id, camera_lens.brand, camera_lens.name, camera_lens.focal_length_mm, camera_lens.max_aperture, photos.id, photos.camera_lens_id, photos.mountain_id, photos.colo... | SELECT T1.name , count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY count(*); |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel WHERE OWNER != 'CCTV'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel WHERE OWNER != 'CCTV'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel ORDER BY rating_in_percent DESC; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel ORDER BY rating_in_percent DESC; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(*) FROM program; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(*) FROM program; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program ORDER BY launch; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program ORDER BY launch; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name , origin , OWNER FROM program; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name , origin , OWNER FROM program; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program ORDER BY launch DESC LIMIT 1; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program ORDER BY launch DESC LIMIT 1; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning"; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning"; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT origin FROM program ORDER BY origin; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT origin FROM program ORDER BY origin; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(DISTINCT OWNER) FROM channel; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT count(DISTINCT OWNER) FROM channel; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program WHERE origin != 'Beijing'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM program WHERE origin != 'Beijing'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS'; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1; |
Tables: program, channel, broadcast, broadcast_share
Columns: program.Program_ID, program.Name, program.Origin, program.Launch, program.Owner, channel.Channel_ID, channel.Name, channel.Owner, channel.Share_in_percent, channel.Rating_in_percent, broadcast.Channel_ID, broadcast.Program_ID, broadcast.Time_of_day, broadcas... | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(*) FROM COURSES; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(*) FROM COURSES; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT course_description FROM COURSES WHERE course_name = "database"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT course_description FROM COURSES WHERE course_name = "database"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = "Cathrine"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = "Cathrine"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT address_line_1 FROM Course_Authors_and_Tutors; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT address_line_1 FROM Course_Authors_and_Tutors; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT login_name , family_name FROM Course_Authors_and_Tutors; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT login_name , family_name FROM Course_Authors_and_Tutors; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(course_id) FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(course_id) FROM Student_Course_Enrolment; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(*) FROM Student_Tests_Taken WHERE test_result = "Fail"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT count(*) FROM Student_Tests_Taken WHERE test_result = "Fail"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT login_name FROM Students WHERE family_name = "Ward"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT login_name FROM Students WHERE family_name = "Ward"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%"; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT subject_name FROM SUBJECTS; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT subject_name FROM SUBJECTS; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT personal_name , family_name FROM Students ORDER BY family_name; |
Tables: Course_Authors_and_Tutors, Students, Subjects, Courses, Student_Course_Enrolment, Student_Tests_Taken
Columns: Course_Authors_and_Tutors.author_id, Course_Authors_and_Tutors.author_tutor_ATB, Course_Authors_and_Tutors.login_name, Course_Authors_and_Tutors.password, Course_Authors_and_Tutors.personal_name, Cours... | SELECT personal_name , family_name FROM Students ORDER BY family_name; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.