I am trying to set a query in order to retrive data about applications for patents in the EPO by US applicants in different sectors form 1990 to 2020.
In first place I looked at the amount of applications form USA applicants in EPO in all sectors with this query:
Code: Select all
SELECT DISTINCT a.*
FROM tls201_appln a
JOIN tls207_pers_appln pa on a.appln_id = pa.appln_id
JOIN tls206_person p on pa.person_id = p.person_id
WHERE appln_auth = 'EP'
AND appln_kind = 'A' -- exclude PCT filings where the EPO only served as the Receiving Office, utility models and design models
AND a.appln_id < 900000000 -- exclude artificial applications
AND appln_filing_year >=1990
AND applt_seq_nr > 0 -- consider only applicants
AND person_ctry_code = 'US' -- applicant must be from United States
Then I need to look at the applications from US applicants in EPO, from 1990 to 2020, in the IPC class A23D (edible oils or fats) and A23J (proteins compositions for foodstuff), but I also need to exclude A23J 3 (Working-up of proteins for foodstuff). This is the query I used, but looking at the result table there' something not working:
Code: Select all
SELECT DISTINCT a.*, ipc_class_symbol
FROM tls201_appln a
JOIN tls207_pers_appln pa on a.appln_id = pa.appln_id
JOIN tls206_person p on pa.person_id = p.person_id
JOIN tls209_appln_ipc i on a.appln_id = i.appln_id
WHERE appln_auth = 'EP'
AND appln_kind = 'A' -- exclude PCT filings where the EPO only served as the Receiving Office, utility models and design models
AND a.appln_id < 900000000 -- exclude artificial applications
AND appln_filing_year >=1990
AND applt_seq_nr > 0 -- consider only applicants
AND person_ctry_code = 'US' -- applicant must be from United States
AND ipc_class_symbol LIKE 'A23D'
OR ipc_class_symbol LIKE 'A23J'
AND NOT ipc_class_symbol LIKE 'A23J 03'
Could you please give me some advice?
Thank you so much
Elisa