Find Interview Candidates
[]
['Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)', 'Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))', 'Truncate table Contests', "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('190', '1', '5', '2')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('191', '2', '3', '5')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('192', '5', '2', '3')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('193', '1', '3', '5')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('194', '4', '5', '2')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('195', '4', '2', '1')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('196', '1', '5', '2')", 'Truncate table Users', "insert into Users (user_id, mail, name) values ('1', 'sarah@leetcode.com', 'Sarah')", "insert into Users (user_id, mail, name) values ('2', 'bob@leetcode.com', 'Bob')", "insert into Users (user_id, mail, name) values ('3', 'alice@leetcode.com', 'Alice')", "insert into Users (user_id, mail, name) values ('4', 'hercy@leetcode.com', 'Hercy')", "insert into Users (user_id, mail, name) values ('5', 'quarz@leetcode.com', 'Quarz')"]
{"mysql": ["Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)", "Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))"], "mssql": ["Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)", "Create table Users (user_id int, mail varchar(50), name varchar(30))"], "oraclesql": ["Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)", "Create table Users (user_id int, mail varchar(50), name varchar(30))"], "database": true, "name": "find_interview_candidates", "pythondata": ["Contests = pd.DataFrame([], columns=['contest_id', 'gold_medal', 'silver_medal', 'bronze_medal']).astype({'contest_id':'Int64', 'gold_medal':'Int64', 'silver_medal':'Int64', 'bronze_medal':'Int64'})", "Users = pd.DataFrame([], columns=['user_id', 'mail', 'name']).astype({'user_id':'Int64', 'mail':'object', 'name':'object'})"], "postgresql": ["\nCreate table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)", "Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))"], "database_schema": {"Contests": {"contest_id": "INT", "gold_medal": "INT", "silver_medal": "INT", "bronze_medal": "INT"}, "Users": {"user_id": "INT", "mail": "VARCHAR(50)", "name": "VARCHAR(30)"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']