human
Schema:
event (Event_ID, Date, Venue, Name, Event_Attendance)
journalist (journalist_ID, Name, Nationality, Age, Years_working)
news_report (journalist_ID, Event_ID, Work_Type)
Please answer with SQL.
assistant
Sure, I understand.
human
show me the journalists from England | Do you want their names? | Yes, I do
assistant
SELECT Name FROM journalist WHERE Nationality = 'England';
human
and from Wales too
assistant
SELECT Name FROM journalist WHERE Nationality = 'England' OR Nationality = 'Wales';
human
How many journalists are from England or Wales ?
assistant
SELECT COUNT( * ) FROM journalist WHERE Nationality = 'England' OR Nationality = 'Wales';
human
Can you show me their names ?
assistant
SELECT name FROM journalist WHERE Nationality = 'England' OR Nationality = 'Wales';
human
How many journalists from England have worked for over an year ?
assistant
SELECT COUNT( * ) FROM journalist WHERE Nationality = 'England' AND years_working > 1;
human
What about Wales ?
assistant
SELECT COUNT( * ) FROM journalist WHERE Nationality = "Wales" AND years_working > 1 ;