-- DBMS: snowflake
create or replace TABLE DATASETTASKS (
	"TotalVotes" NUMBER(38,0),
	"Subtitle" VARCHAR(16777216),
	"ForumId" VARCHAR(16777216),
	"Description" VARCHAR(16777216),
	"CreationDate" NUMBER(38,0),
	"OwnerUserId" NUMBER(38,0),
	"DatasetId" NUMBER(38,0),
	"Deadline" NUMBER(38,0),
	"Title" VARCHAR(16777216),
	"Id" NUMBER(38,0)
);

INSERT INTO "META_KAGGLE"."META_KAGGLE"."DATASETTASKS" (Subtitle, DatasetId, CreationDate, TotalVotes, Deadline, Description, Title, OwnerUserId, ForumId, Id) VALUES (NULL, 511638, 1582109315000000, 193, nan, '## Task Details
Can we predict the possibility of a booking for a hotel based on the previous_cancellation as the target?

## Expected Submission
Two columns --&gt; Hotel Name and Booking_Possibility (0 or 1)', 'Can we predict the possibility of a booking?', 2889731, NULL, 462), ('Prize Pool $6000; Submission deadline - July 25', 688051, 1591047416000000, 14, 1600646400000000.0, '## Task Details
We are sharing the latest BCG Atlas data and various texts related to BCG vaccine policies around the world. The goal of the task is to try to **improve and to extend the existing BCG World Atlas data** and to get a fuller picture of the administration of the vaccine. All data that is collected during this task will support the work of the BCG Atlas team, and it will also help with the analysis of the second task of the hackathon. 
The current BCG data is stored in  file.  The task is to try to find snippets that answer some of these questions. All the questions are listed as columns. Specifically, we would like to get as many accurate answers as possible to the following questions, for as many countries or regions as possible:
- Which BCG strain over the years has been used in different countries since the creation of the vaccine and during what time periods?
- Who are or were the target group of the vaccine, and when and at what age were they vaccinated?
- Have revaccinations (boosters) been given and if yes, when and at what age?
 
In the following spreadsheet are listed a couple of sample records - [BCG policy data hackathon sample google spreadsheet](https://docs.google.com/spreadsheets/d/1nrzrAy0vC43Iy9QaKA5pR83O3YW3I16pXFjnOt86j5I/edit#gid=67941157). The new records which were added in addition to the existing BCG data from "BCG_world_atlas_data-2020.csv" file are on line 3, 6 and 7 and are highlighted in green. Line 4 and 5 are part of the original "BCG_world_atlas_data-2020.csv" file. The first 4 columns are mandatory and the field “Is it from bcgatlas.org (Mandatory field)” should have the value “no” for all records that are added by the participants of the hackathon. 

## Expected Submission
The expected submission will be a copy of the "BCG_world_atlas_data-2020.csv"  file saved in Kaggle. The file should contain additional rows for a number of countries with snippets that contain answers to a specific question of a given column.  There should be no more than 2 new rows (data sources) per country. The snippet length should not be longer than 350* characters. For each additional row that has been added apart from the snippet(s), the first four columns are mandatory and should also be updated. A manual review is highly recommended in order to make sure that the snippets of the 2 selected data sources contain information about the specified country.

Participants must also accept our [competition rules](https://www.kaggle.com/bcgvaccine/hackathon). 

## Evaluation
Submissions will be scored using the following grading rubric:
- How many answers for how many countries have been found?  
- Are the snippets relevant?   
- Is the methodology well documented and if the code easy to read and reuse?  

## Timeline
Start date (June 8, 2020)
Submission deadline (July 25, 2020) at 11:59pm UTC.**

## Prizes
- First prize $3,000
- Second prize $2,000
- Third prize $1,000

## Winners
- First place - Dimitrina Zlatkova - contributed 57 additional
entries data points
- Second place - Marouane Benmeida - contributed 33 additional
entries data points


[*] 22 June, updated the length from 120 to 350 characters.', 'Extend the BCG World Atlas Database for BCG Vaccine Policies and Practices', 5212675, NULL, 1026), ('Kernel to find the recipe that use the items in my fridge', 311962, 1575918022000000, 21, 1580428800000000.0, '## Task Details
I''m hungry and I''ve got some left-over, but currently unknown ingredients, (ex: ''winter squash'', ''mexican seasoning'', ''mixed spice'', ''honey'', ''butter'', ''olive oil'', ''salt'') in my fridge. I want to find the recipe that use the most (if not all) the ingredients in my fridge with fewest additional ingredients to buy, with the least amount of effort in time to prep/cook.

## Expected Submission
A kernel that takes an array of arrays of ingredients in my fridge and outputs the recommended dish information.
Each inner array is the ingredients that I have for one dish.
Expected output is an array of arrays of [recipeId,  recipeName, prepTimeInMinutes, numberOfFridgeItemUsed, numberOfAdditionalItemsNeeded]:

Example input:
```
input = [
 [''winter squash'', ''mexican seasoning'', ''mixed spice'', ''honey'', ''butter'', ''olive oil'', ''salt''], 
[''low sodium chicken broth'', ''tomatoes'', ''zucchini'', ''potatoes'', ''wax beans'', ''green beans'', ''carrots''], 
[''spinach'',  ''garlic powder'', ''soft breadcrumbs'', ''oregano'', ''onion'']
 ]
```

Example output:
```
output = [ 
[137739, ''arriba baked winter squash mexican style'', 60, 7, 0],
[87098, ''homemade vegetable soup from a can'', 15, 7, 1],
[38798, ''i can t believe it s spinach'', 30, 5, 3]
 ]

```

## Evaluation
An average score of recipes will be calculated. Each recipe score is calculated as:
```each recipe score = numberOfFridgeItemUsed ^ 60 / prepTimeInMinutes) - numberOfAdditionalItemsNeeded ^ (prepTimeInMinutes / 15)```

Note: I''m willing to leave some of my items in the fridge for my next meal ��', 'Hungry with my fridge!', 1952004, NULL, 164), (NULL, 501019, 1580852341000000, 16, nan, '## Task Details
It might seem to be intuitive that bikeshare users would travel in the reverse direction in the evening than in the morning. But how true is that? If that''s the case, would it reduce the value of convenience of bikeshares being available everywhere, and should they just get their own bikes? Do we also need a crew to pick up and restore all the bikes to initial distributions across the city before the next morning?

## Expected Submission
1. Find out what percentage of bikes are returned to its initial location?
2. How many bikeshare trips usually visit more than just start/end points, but visited some other points before the end of the day?', 'Do bikeshare go round trip or one way?', 1952004, NULL, 433), (NULL, 134715, 1584292213000000, 27, 1609372800000000.0, 'Use various Algorithms to increase the performance of the prediction of the sentiment expressed in the review.', 'Sentiment Analysis', 3630854, NULL, 588);