Prompt:
Which superheroes have a durability attribute value of less than 50?

Hint: durability of less than 50 refers to attribute_name = 'Durability' AND attribute_value < 50


Prompt:
Please list all the superpowers of 3-D Man.

Hint: 3-D Man refers to superhero_name = '3-D Man'; superpowers refers to power_name


Prompt:
List down at least five superpowers of male superheroes.

Hint: male refers to gender = 'Male'; superpowers refers to power_name;


Prompt:
What is the percentage of superheroes who act in their own self-interest or make decisions based on their own moral code? Indicate how many of the said superheroes were published by Marvel Comics.

Hint: published by Marvel Comics refers to publisher_name = 'Marvel Comics'; superheroes who act in their own self-interest or make decisions based on their own moral code refers to alignment = 'Bad'; calculation = MULTIPLY(DIVIDE(SUM(alignment = 'Bad); count(id)), 100)


Prompt:
Identify the gender of the superhero who has the ability of Phoenix Force.

Hint: ability of Phoenix Force refers to power_name = 'Phoenix Force';


Prompt:
Give the publisher ID of Star Trek.

Hint: Star Trek is the publisher_name;


Prompt:
How many gold-eyed superheroes did Marvel Comics publish?

Hint: gold-eyed refers to colour = 'Gold' where eye_colour_id = colour.id; superheroes that Marvel Comics published refers to publisher_name = 'Marvel Comics'


Prompt:
Calculate the average height for all superhero.

Hint: average = DIVIDE(SUM(height_cm), COUNT(all heros));


Prompt:
Calculate the percentage of superheroes with blue eyes.

Hint: percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id =  eye_colour_id = 7;


Prompt:
List the heroes' names whose eyes and hair colours are both black.

Hint: heroes' names refers to superhero_name; eyes and hair colours are both black refers to eye_colour_id AND hair_colour_id WHERE colour.colour = 'Black';


Prompt:
Find the ratio between male superheroes and female superheroes.

Hint: ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2)); male superheroes refers to gender = 'Female'; female superheroes refers to gender = 'Male';


Prompt:
What are the superpowers of heroes with ID 1?

Hint: superpowers refers to power_name; heroes with ID 1 refers to hero_id = 1;


Prompt:
Which superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.

Hint: which superhero refers to superhero_name; the same eyes, hair and skin colour refers to hair_colour_id = skin_colour_id AND hair_colour_id = eye_colour_id; publisher refers to publisher_name;


Prompt:
Tally the toxicology element of the 4th atom of each molecule that was carcinogenic.

Hint: label = '+' means molecules are carcinogenic; 4th atom of each molecule refers to substr(atom_id, 7, 1) = '4';


Prompt:
Calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine.

Hint: triple bond refers to bond_type = '#'; phosphorus refers to element = 'p'; bromine refers to element = 'br'


Prompt:
Among all the atoms from 21 to 25, list all the molecules that are carcinogenic.

Hint: atoms from 21 to 25 refers to SUBSTR(atom_id, 7, 2) between '21' and '25'; label = '+' mean molecules are carcinogenic


Prompt:
What are the bond type and the atoms of the bond ID of TR001_6_9?

Hint: atoms refer to atom_id or atom_id2


Prompt:
What elements are in a double type bond?

Hint: double type bond refers to bond_type = '=';


Prompt:
Which element is the least numerous in non-carcinogenic molecules?

Hint: label = '-' means molecules are non-carcinogenic; least numerous refers to MIN(COUNT(element));


Prompt:
What is the percentage of carcinogenic molecules in triple type bonds?

Hint: label = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(bond_type = '#') * 100, COUNT(bond_id)) as percent where label = '+'


Prompt:
Calculate the average number of oxygen atoms in single-bonded molecules.

Hint: single-bonded molecules refers to bond_type = '-' ; average number of oxygen atom = AVG(element = 'o')


Prompt:
Please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order.

Hint: label = '-' means molecules are not carcinogenic; single type bond refers to bond_type = '-'; list top three molecules refers to return molecule_id and order by molecule_id;


Prompt:
What is the ratio of Hydrogen elements in molecule ID TR006? List the ratio with its label.

Hint: hydrogen refers to element = 'h'; ratio = DIVIDE(SUM(element = 'h'), count(element)) where molecule_id = 'TR006' ; label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic


Prompt:
List all the elements of atoms that can not bond with any other atoms.

Hint: atoms cannot bond with other atoms means atom_id NOT in connected table;


Prompt:
How many atoms with iodine and with sulfur type elements are there in single bond molecules?

Hint: with iodine element refer to element = 'i'; with sulfur element refers to element = 's'; single type bond refers to bond_type = '-'; Should consider the distinct atoms when counting;


Prompt:
What is the percentage of molecules that are carcinogenic? Please provide your answer as a percentage with three decimal places.

Hint: label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) as percent


Prompt:
Which event has the lowest cost?

Hint: event refers to event_name; lowest cost means MIN(cost)


Prompt:
For all the club members from "Business" major, how many of them wear medium size t-shirt?

Hint: 'Business' is a major name; wear medium size t-shirt refers to t_shirt_size = 'Medium'


Prompt:
Tell the phone number of "Carlo Jacobs".

Hint: Carlo Jacobs is the full name; full name refers to first_name, last_name;


Prompt:
Among the events attended by more than 10 members of the Student_Club, how many of them are meetings?

Hint: meetings events refers to type = 'Meeting'; attended by more than 10 members refers to COUNT(event_id) > 10


Prompt:
How many cities are there in Orange County, Virginia?

Hint: Orange County is the county name, Virginia is the state name


Prompt:
Calculate the total average cost that Elijah Allen spent in the events on September and October.

Hint: Elijah Allen is the full name; full name refers to first_name, last_name; The 5th and 6th string of the expense_date in the expense table can refer to month; events in September and October refers to month(expense_date) = 9 OR month(expense_date) = 10


Prompt:
List the last name of members with a major in environmental engineering and include its department and college name.

Hint: 'Environmental Engineering' is the major_name;


Prompt:
Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it.

Hint: full name refers to first_name, last name; spent money for refers expense description; expense_description = 'Water, Veggie tray, supplies'


Prompt:
Give the full name and contact number of members who had to spend more than average on each expense.

Hint: full name refers to first_name, last_name; contact number refers to phone; had spent more than average on each expense refers to cost > AVG(cost)


Prompt:
What is the highest amount of budget spend for an event?

Hint: highest amount of budget spend refers to MAX(spent)


Prompt:
Indicate the name of the closed event whose cost has exceeded the budget the most.

Hint: closed events refers to event_name where status = 'Closed'; exceed the budget the most refers to MIN(remaining) where remaining < 0


Prompt:
Write the full names of students who received funds on the date of 9/9/2019 and include the amount received.

Hint: full name refers to first_name, last_name, amount of funds received refers to amount, received funds on date refers to date_received


Prompt:
Was each expense in October Meeting on October 8, 2019 approved?

Hint: event_name = 'October Meeting' where event_date = '2019-10-08'; approved = True means expenses was approved; approved = False means expenses was not approved


Prompt:
Which state special schools have the highest number of enrollees from grades 1 through 12?

Hint: State Special Schools refers to DOC = 31; Grades 1 through 12 means K-12


Prompt:
Please list the codes of the schools with a total enrollment of over 500.

Hint: Total enrollment can be represented by `Enrollment (K-12)` + `Enrollment (Ages 5-17)`


Prompt:
Consider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average.

Hint: Difference between K-12 enrollment and 15-17 enrollment can be computed by `Enrollment (K-12)` - `Enrollment (Ages 5-17)`


Prompt:
List the names of virtual schools that are among the top 5 in their respective counties based on average reading scores.

Hint: Exclusively virtual refers to Virtual = 'F'; respective counties means PARTITION BY County


Prompt:
What is the average score in writing for the schools that were opened after 1991 or closed before 2000? List the school names along with the score. Also, list the communication number of the schools if there is any.

Hint: Communication number refers to phone number.


Prompt:
Name schools in Riverside which the average of average math score for SAT is grater than 400, what is the funding type of these schools?

Hint: Average of average math = sum(average math scores) / count(schools).


Prompt:
What are the valid e-mail addresses of the administrator of the school located in the San Bernardino county, City of San Bernardino City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?

Hint: Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'


Prompt:
What is the average writing score of each of the schools managed by Ricci Ulrich? List the schools and the corresponding average writing scores.

Hint: Usually, administrators manage the school stuff.


Prompt:
What is the average number of test takers from Fresno schools that opened between 1/1/1980 and 12/31/1980?

Hint: between 1/1/1980 and 12/31/1980 means the year = 1980


Prompt:
What is the ratio of merged Unified School District schools in Orange County to merged Elementary School District schools?

Hint: Elementary School District refers to DOC = 52; Unified School District refers to DOC = 54.


Prompt:
What is the grade span offered in the school with the highest longitude?

Hint: the highest longitude refers to the school with the maximum absolute longitude value.


Prompt:
What is the telephone number for the school with the lowest average score in reading in Fresno Unified?

Hint: Fresno Unified is a name of district;


Prompt:
How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?

Hint: Exclusively virtual refers to Virtual = 'F'


Prompt:
In superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?

Hint: height between 150 to 180 refers to height_cm BETWEEN 150 AND 180; heroes published by Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = MULTIPLY(DIVIDE(SUM(publisher.id = 13)), COUNT(publisher.id), 100)


Prompt:
What are the names of the superheroes with the power of death touch?

Hint: name of superheroes refers to refers to superhero_name; the power of death touch refers to power_name = 'Death Touch'


Prompt:
Provide the hair colour of the human superhero who is 185 cm tall.

Hint: 185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;


Prompt:
What is the publisher for Hawkman, Karate Kid and Speedy?

Hint: publisher refers to publisher_name; Hawkman refers to superhero_name = 'Hawkman'; Karate Kid refers to superhero_name = 'Karate Kid'; Speedy refers to superhero_name = 'Speedy';


Prompt:
How much of the hydrogen in molecule TR206 is accounted for? Please provide your answer as a percentage with four decimal places.

Hint: hydrogen refers to element = 'h'; TR206 is the molecule id; percentage = DIVIDE(SUM(element = 'h'), COUNT(atom_id)) as percent where molecule_id = 'TR206'


Prompt:
Is the molecule with the most double bonds carcinogenic?

Hint: double bond refers to bond_type = ' = '; label = '+' mean molecules are carcinogenic


Prompt:
What are the elements of the atoms of TR144_8_19?

Hint: TR144_8_19 is the bond id;


Prompt:
On average how many carcinogenic molecules are single bonded?

Hint: carcinogenic molecules refers to label = '+'; single-bonded refers to bond_type = '-'; average = DIVIDE(SUM(bond_type = '-'), COUNT(atom_id))


Prompt:
Among the students from the Student_Club who attended the event "Women's Soccer", how many of them want a T-shirt that's in medium size?

Hint: Women's Soccer is an event name; T-shirt that is in medium size refers to t_shirt_size = 'Medium'


Prompt:
State the date Connor Hilton paid his/her dues.

Hint: Connor Hilton is the full name; full name refers to first_name, last_name; date the dues was paid refers to date_received where source = 'Dues';


Prompt:
Indicate the cost of posters for 'September Speaker' event.

Hint: 'Posters' is the expense description; 'September Speaker' is an event name


Prompt:
Did Maya Mclean attend the 'Women's Soccer' event?

Hint: Maya Mclean is the full name; full name refers to first_name, last_name; 'Women's Soccer' is an event_name


Prompt:
What is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980?

Hint: Elementary School District refers to DOC = 52; Monthly average number of schools that opened in 1980 = count(schools that opened in 1980) / 12


Prompt:
Which schools served a grade span of Kindergarten to 9th grade in the county of Los Angeles and what is its Percent (%) Eligible FRPM (Ages 5-17)?

Hint: Percent (%) Eligible FRPM (Ages 5-17) can be acquired by `FRPM Count (Ages 5-17)` / `Enrollment (Ages 5-17)` * 100


Prompt:
How many students from the ages of 5 to 17 are enrolled at the State Special School school in Fremont for the 2014-2015 academic year?

Hint: State Special School means EdOpsCode = 'SSS'


Prompt:
Give the names of the schools with the percent eligible for free meals in K-12 is more than 0.1 and test takers whose test score is greater than or equal to 1500?

Hint: Percent eligible for free meals = Free Meal Count (K-12) / Total (Enrollment (K-12)


Prompt:
Among all European Grand Prix races, what is the percentage of the races were hosted in Germany?

Hint: European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100


Prompt:
Which constructor scored most points from Monaco Grand Prix between 1980 and 2010? List the score, name and nationality of this team.

Hint: Monaco Grand Priz refers to the race; race in year between 1980 and 2010


Prompt:
How many Japanese constructors have 0 points in 2 races?

Hint: 2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';


Prompt:
What's the reference name of Marina Bay Street Circuit?

Hint: reference name refers to circuitRef; Marina Bay Street Circuit refers to circuits.name = 'Marina Bay Street Circuit'


Prompt:
For the constructor which got the highest point in the race No. 9 , what is its introduction website?

Hint: race number refers to raceId; constructor which got the highest point refers to MAX(constructorResults.points); introduction website of the constructor refers to url;


Prompt:
What's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix?

Hint: finish time refers to time; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';


Prompt:
List down top 3 German drivers who has the shortest average pit stop duration and were born between 1980-1985.

Hint: Full name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980<= year(dob) <=1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));


Prompt:
Please calculate the race completion percentage of Japanese drivers from 2007 to 2009.

Hint: from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100;


Prompt:
What is the best lap time recorded? List the driver and race with such recorded lap time.

Hint: the best lap time refers to min(milliseconds); List the driver refers to drivers.forename and drivers.surname; List the race refers to races.name


Prompt:
List the names of all races that occurred in the earliest recorded year and month.

Hint: earliest recorded year and month refers to year = year(min(date)) and month = month(min(date));


Prompt:
How many accidents did the driver who had the highest number accidents in the Canadian Grand Prix have?

Hint: number of accidents refers to the number where statusid = 3; Canadian Grand Prix refers to the race of name


Prompt:
Which driver ranked the first in the Canadian Grand Prix in 2007? Please give his reference name.

Hint: reference name refers to driverRef; Canadian Grand Prix refers to races.name = 'Canadian Grand Prix';


Prompt:
For the drivers who took part in the race in 1983/7/16, what's their race completion rate?

Hint: DIVIDE(COUNT(driverid when time has value ), (COUNT(driverid )) as percentage; in 1983/7/16 refers to when date = '1983-07-16'


Prompt:
State the driver with the most points scored. Find his full name with that points.

Hint: the most points scored refers to max(points); Full name of the driver refers to drivers.forename and drivers.surname;


Prompt:
Which top 20 driver created the shortest lap time ever record in a Formula_1 race? Please give them full names.

Hint: shortest lap time refers to MIN(time); the time format for the shortest lap time is 'MM:SS.mmm' or 'M:SS.mmm'; full name of the driver refers to forename, surname


Prompt:
What is the average of fastest lap speed in the 2009 Spanish Grand Prix race?

Hint: Spanish Grand Prix is the name of race refers to name = 'Spanish Grand Prix'; average fastest lap speed refers to avg(fastestLapSpeed);


Prompt:
What was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?

Hint: the fastest lap speed among all refers to max(fastestLapSpeed); Spanish Grand Prix refers to races.name = 'Spanish Grand Prix';


Prompt:
What's Bruno Senna's Q1 result in the qualifying race No. 354?

Hint: race number refers to raceId; Bruno Senna refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;


Prompt:
What is the constructor reference name of the champion in the 2009 Singapore Grand Prix? Please give its website.

Hint: the time of the champion shows in the format of "minutes: seconds.millionsecond" in which Max(time); constructor reference name refers to constructorRef; website refers to url


Prompt:
For all the drivers who finished the game in race No. 592, who is the oldest?

Hint: drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL); race number refers to raceId; date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;


Prompt:
Which drivers who were born in 1971 and has the fastest lap time on the race? Give id and code of these drivers.

Hint: born in 1971 refers to year(dob) = 1971; has the fastest lap time refers to fastestLapTime has values


Prompt:
Which country is the oldest driver from?

Hint: date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;


Prompt:
What proportion of cards do not have a text box with a normal layout?

Hint: do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100


Prompt:
List all the card id and artist with unknown power which are legal for commander play format.

Hint: unknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'


Prompt:
What is the percentage of incredibly powerful cards in the set Coldsnap?

Hint: card set Coldsnap refers to name = 'Coldsnap'; foil is incredibly powerful refers to cardKingdomFoilId is not null AND cardKingdomId is not null; the percentage of incredibly powerful cards in the set refers to DIVIDE(SUM(incredibly powerful), SUM(name = 'Coldsnap'))*100


Prompt:
What is the percentage of the cards with a converted mana cost of 7 in the set Coldsnap?

Hint: converted mana cost of 7 refers to convertedManaCost = 7; card set Coldsnap refers to name = 'Coldsnap'; percentage = DIVIDE(SUM(convertedManaCost = 7), SUM(convertedManaCost))*100


Prompt:
Which of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition.

Hint: play format refers to format; banned status refers to status = 'Banned'; the highest number of banned status refers to MAX(COUNT(status = 'Banned'))


Prompt:
Did the set of cards with "Angel of Mercy" appear on Magic: The Gathering Online?

Hint: card set "Angel of Mercy" refers to name = 'Angel of Mercy'; appear on Magic: The Gathering Online refers to mtgoCode is NOT NULL and vice versa


Prompt:
Among the Artifact cards, which are black color and comes with foreign languague translation?

Hint: Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data


Prompt:
Among the sets in the block "Ice Age", how many of them have an Italian translation?

Hint: sets in the block "Ice Age" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' and translation is not null


Prompt:
Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.

Hint: cards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist; Find all cards refers to return card id


Prompt:
How many cards with original type of "Summon - Angel" have subtype other than "Angel"?

Hint: subtype other than Angel refers to subtypes is not 'Angel';


Prompt:
Which are the cards that have incredibly powerful foils.

Hint: incredibly poweful foils refers to cardKingdomFoilId is not null AND cardKingdomId is not null


Prompt:
Is the set of cards with Adarkar Valkyrie only available outside the United States?

Hint: card set Adarkar Valkyrie refers to name = 'Adarkar Valkyrie'; isForeignOnly = 1 means only available outside the United States;


Prompt:
What is the border color of card "Ancestor's Chosen"?

Hint: name of card  = 'Ancestor''s Chosen' ;


Prompt:
What is the percentage of Story Spotlight cards that do not have a text box? List them by their ID.

Hint: Story Spotlight cards that do not have a text box refers to isStorylight = 1 and isTextless = 0; Percentage = DIVIDE(SUM(count(id) where isStorylight = 1 AND isTextless = 0 ), SUM(count(id))) * 100


Prompt:
What is the language of the card with the multiverse number 149934?

Hint: multiverse number 149934 refers to multiverseid = 149934;


Prompt:
What is the rule of playing card "Benalish Knight"?

Hint: Benalish Knight' is the name of card; rule of playing card refers to format;


Prompt:
What languages are available in the set known as Archenemy on the magic card market and having the code ARC?

Hint: known as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC'


Prompt:
Among the cards with converted mana cost higher than 5 in the set Coldsnap, how many of them have unknown power?

Hint: card set Coldsnap refers to name = 'Coldsnap'; converted mana cost higher than 5 refers to convertedManaCost > 5; unknown power refers to power = '*' or T1.power is null


Prompt:
Lists all types of cards in German.

Hint: German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null


Prompt:
For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.

Hint: Artifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';


Prompt:
Calculate the percentage of the cards availabe in Chinese Simplified.

Hint: Chinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100


Prompt:
List all the mythic rarity print cards banned in gladiator format.

Hint: mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';


Prompt:
List the football players with a birthyear of 1970 and a birthmonth of October.

Hint: players with a birthyear of 1970 and a birthmonth of October refers to substr(birthday,1,7) AS 'year-month',WHERE year = '1970' AND month = '10';


Prompt:
Please name one player whose overall strength is the greatest.

Hint: overall strength is the greatest refers to MAX(overall_rating)


Prompt:
What are the short name of team who played safe while creating chance of passing?

Hint: played safe while creating chance of passing refers to chanceCreationPassingClass = 'Safe'; short name of team refers to team_short_name


Prompt:
What are the speed in which attacks are put together of the top 4 teams with the highest build Up Play Speed?

Hint: speed in which attacks are put together refers to buildUpPlaySpeed;highest build up play speed refers to MAX(buildUpPlaySpeed)


Prompt:
Please state the finishing rate and curve score of the player who has the heaviest weight.

Hint: finishing rate refer to finishing; curve score refer to curve; heaviest weight refers to MAX(weight)


Prompt:
State the name of the most strongest player.

Hint: strongest players refers to player has MAX(overall_rating)


Prompt:
List the long name of teams with above-average build-up play passing in 2012.

Hint: long name of teams refers to team_long_name; build-up play passing refers to buildUpPlayPassing; above-average build-up play passing = buildUpPlayPassing > DIVIDE(SUM(buildUpPlayPassing), COUNT(team_long_name) WHERE buildUpPlayPassing IS NOT NULL); in 2012 refers to strftime('%Y', date) = '2012';


Prompt:
What percentage is Landon Donovan's overall rating higher than Jordan Bowery on 2013/7/12?

Hint: Landon Donovan's refers to player_name = 'Landon Donovan'; Jordan Bowery refers to player_name = 'Jordan Bowery'; percentage refers to DIVIDE(SUBTRACT(player_name = 'Landon Donovan' overall_rating; player_name = 'Jordan Bowery' overall_rating), player_name = 'Landon Donovan' overall_rating)*100


Prompt:
Which player is the tallest?

Hint: tallest player refers to MAX(height);


Prompt:
What is the difference between players 6 and 23's jumping scores?

Hint: difference between players 6 and 23's jumping scores refers to SUBTRACT(jumping AND id = 6,jumping AND id = 23)


Prompt:
When was the first time did Kevin Constant have his highest crossing score? Give the date.

Hint: Kevin Constant refers to player_name = 'Kevin Constant'; highest crossing score refers to MAX(crossing)


Prompt:
Calculate the average home team goal in the 2010/2011 season in the country of Poland.

Hint: average home team goal = AVG(home_team_goal)= SUM(home_team_goal) / COUNT(DISTINCT Match.id) WHERE name = 'Poland' and season = '2010/2011';


Prompt:
Who has the highest average finishing rate between the highest and shortest football player?

Hint: finishing rate refers to finishing; highest average finishing rate = MAX(AVG(finishing)); highest football player refers to MAX(height); shortest football player refers to MIN(height);


Prompt:
Give the name of the league had the most matches in the 2008/2009 season?

Hint: league that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');


Prompt:
Tell the build Up play passing class for "FC Lorient" on 2010/2/22.

Hint: "FC Lorient" refers to team_long_name = 'FC Lorient'; on 2010/2/22 refers to date LIKE '2010-02-22%';


Prompt:
Who are the players that tend to be attacking when their mates were doing attack moves? List down their name.

Hint: tend to be attacking when their mates were doing attack moves refers to attacking_work_rate = 'high';


Prompt:
Calculate the average overall rating of Pietro Marino.

Hint: Pietro Marino refers to player_name = 'Pietro Marino'; average overall rating AVG(T1.overall_rating)


Prompt:
Which player is older, Aaron Lennon or Abdelaziz Barrada?

Hint: The larger the birthday value, the younger the person is, and vice versa;


Prompt:
Give the team_fifa_api_id of teams with more than 50 but less than 60 build-up play speed.

Hint: teams with more than 50 but less than 60 build-up play speed refers to buildUpPlaySpeed >50 AND buildUpPlaySpeed <60;


Prompt:
What is the overall rating of the football player Gabriel Tamas in year 2011?

Hint: in year 2011 refers to strftime('%Y', date) = '2011';


Prompt:
For the players who had a 77 points overall rating on 2016/6/23, who was the oldest? Give the name of the player.

Hint: 77 points overall rating refers to overall_rating = 77; on 2016/6/23 refers to date LIKE '2016-06-23%'; The larger the birthday value, the younger the person is, and vice versa;


Prompt:
From 2010 to 2015, what was the average overall rating of players who are higher than 170?

Hint: from 2010 to 2015 refers to strftime('%Y', date) >= '2010' AND <= '2015'; average overall rating = SUM(t2.overall_rating)/ COUNT(t2.id); higher than 170 refers to Player.height > 170;


Prompt:
List all patients who were followed up at the outpatient clinic who underwent a laboratory test in October 1991 and had a total blood bilirubin level within the normal range.

Hint: followed up at the outpatient clinic refers to Admission = '-'; laboratory test in April 1981 refers to Date like '1991-10%'; blood bilirubin level within the normal range refers to T-BIL < 2.0;


Prompt:
For the patient who was born on 1959/2/18, what is the decrease rate for his/her total cholesterol from November to December in 1981?

Hint: born on 1959/2/18 refers to Birthday = '1959-02-18'; calculation = DIVISION(SUBTRACT(SUM(Birthday = '1959-02-18' and Date like '1981-11-%' THEN `T-CHO`), SUM(Birthday = '1959-02-18' and Date like '1981-12-%' THEN `T-CHO`)), SUM(Birthday = '1959-02-18' and Date like '1981-12-%' THEN `T-CHO`))


Prompt:
How many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital?

Hint: normal level of anti-ribonuclear protein refers to RNP = '-', '+-'; And'-' means 'negative'; '+-' refers to '0'; admitted to the hospital refers to Admission = '+'; Should consider DISTINCT in the final result;


Prompt:
Was the patient with the number 57266's uric acid within a normal range?

Hint: uric acid within a normal range refers to UA > 8.0 and SEX = 'M'OR UA > 6.5 and SEX = 'F'


Prompt:
Among the male patients who have a normal level of white blood cells, how many of them have an abnormal fibrinogen level?

Hint: male patients refers to Sex = 'M'; normal level of white blood cells refers to WBC > 3.5 and WBC <9.0; abnormal fibrinogen level refers to FG < = 150 or FG > = 450; Don't compute repetitive ones.


Prompt:
For patient born between 1936-1956, how many male patients have creatinine phosphokinase beyond the normal range?

Hint: born between 1936-1956 refers to year(Birthday) BETWEEN '1936' AND '1956'; male patients refers to sex = 'M'; creatinine phosphokinase beyond the normal range refers to CPK > = 250; Should consider DISTINCT in the final result;


Prompt:
The oldest SJS patient's medical laboratory work was completed on what date, and what age was the patient when they initially arrived at the hospital?

Hint: The larger the birthday value, the younger the person is, and vice versa; 'SJS' refers to diagnosis; (SUBTRACT(year(`First Date`)), year(Birthday)); age of the patients when they initially arrived at the hospital refers to year(Birthday)


Prompt:
What are the patient's diagnosis for those who has lower red blood blood cell? State their ID and age.

Hint: patient's diagnosis refers to Diagnosis; lower red blood cell refers to RBC < 3.5; age = SUBTRACT(year(current_timestamp), year(Birthday));


Prompt:
List the patient ID, sex and birthday of patient with LDH beyond normal range.

Hint: LDH beyond normal range refers to LDH > '500';


Prompt:
What percentage of patients who were born in 1980 and were diagnosed with RA are women?

Hint: born in 1980 refers to YEAR(BIRTHDAY) = '1980'; 'RA' refers to Diagnosis='RA' ; women refers to SEX = 'F'; calculation = DIVIDE(SUM(SEX = 'F'), COUNT(SEX)) * 100


Prompt:
How many underage patients were examined during the course of the three-year period from 1990 to 1993?

Hint: underage patients refers to year(Birthday) < 18; three-year period from 1990 to 1993 refers to year(`Examination Date`) between '1990' and '1993'


Prompt:
How old was the patient who had the highest hemoglobin count at the time of the examination, and what is the doctor's diagnosis?

Hint: How old the patient refers to SUBTRACT(year(`Examination Date`), year(Birthday)); the highest hemoglobin count refers to MAX(HGB)


Prompt:
Provide IDs for male patients with ALT glutamic pylvic transaminase (GPT) that have history of ALT glutamic pylvic transaminase (GPT) exceed the normal range.

Hint: male refers to SEX = 'M'; ALT glutamic pylvic transaminase (GPT) exceed the normal range refers to GPT > = 60


Prompt:
For all patients who are older than 55 years old, what is the percentage of female who has abnormal prothrombin time (PT)?

Hint: older than 55 years old = SUBTRACT(year(current_timestamp), year(Birthday)) > 55; abnormal prothrombin time (PT) refers to PT > = 14; percentage = DIVIDE(SUM(PT > = 14 AND SEX = 'F'), SUM(PT > = 14)) * 100; female refers to sex = 'F';


Prompt:
State the ID and age of patient with positive degree of coagulation.

Hint: age refers to SUBTRACT(year(current_timestamp), year(Birthday)); positive degree of coagulation refers to RVVT = '+';


Prompt:
What is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE?

Hint: average blood albumin level refers to AVG(ALB); female refers to SEX = 'F'; PLT greater than 400 refers to PLT > 400; diagnosed with SLE refers to Diagnosis= 'SLE'


Prompt:
What is the ratio of outpatient to inpatient followed up treatment among all the 'SLE' diagnosed patient?

Hint: 'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation =  DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')


Prompt:
Among the patients with a normal Ig G level, how many of them have symptoms?

Hint: normal Ig G level refers to IGG > 900 and IGG < 2000; have symptoms refers to Symptoms IS NOT NULL;


Prompt:
What is the average age of the male patient with high cholesterol?

Hint: average age = DIVIDE(SUM(SUBTRACT(YEAR(NOW()), YEAR(birthday))), COUNT(ID)); male patient refers to sex = 'M'; high cholesterol refers to `T-CHO` > = 250;


Prompt:
For the patient who was diagnosed with SLE on 1994/2/19, what was his/her anti-Cardiolipin antibody concentration status on 1993/11/12?

Hint: diagnosed with SLE refers to Diagnosis = 'SLE'; 1994/2/19 refers to Description = '1994-02-19'; anti-Cardiolipin refers to aCL IgM; 1993/11/12 refers to Examination Date = '1993/11/12'


Prompt:
How many patients who were examined between 1987/7/6 and 1996/1/31 had a GPT level greater than 30 and an ALB level less than 4? List them by their ID.

Hint: examined between 1987/7/6 and 1996/1/31 refers to Date BETWEEN '1987-07-06' AND '1996-01-31'; GPT level greater than 30 refers to GPT > 30; ALB level less than 4 ALB < 4


Prompt:
How many patients with a abnormal C-reactive protein don't have their data recorded?

Hint: abnormal C-reactive protein refers to CRP ='+'; don't have data recorded refers to Description IS NULL;


Prompt:
Calculate the difference in view count from post posted by Mornington and view count from posts posted by Amos.

Hint: calculation = SUBTRACT(SUM(ViewCount where DisplayName = 'Mornington'), SUM(ViewCount where DisplayName = 'Amos'));


Prompt:
When did 'chl' cast its first vote in a post?

Hint: DisplayName = 'chl'; cast its first vote refers to MIN(CreationDate);


Prompt:
Name the user that commented 'thank you user93!'

Hint: "thank you user93" is the Text of comment; user refers to DisplayName


Prompt:
Among posts by Harvey Motulsky and Noah Snyder, which one has higher popularity?

Hint: Has higher popularity means the post has higher view count ; calculation = MAX(SUM(ViewCount)) where DisplayName = 'Harvey Motulsky' OR DisplayName = 'Noah Snyder';


Prompt:
Which user added a bounty amount of 50 to the post title mentioning variance?

Hint: bounty amount of 50 refers to BountyAmount = 50; user refers to DisplayName; title mentioning variance refers to Title include 'variance'


Prompt:
Which post by Harvey Motulsky has the most views? Please give the id and title of this post.

Hint: DisplayName = 'Harvey Motulsky'; the most views refer to MAX(ViewCount);


Prompt:
How many users last accessed the website after 2014/9/1?

Hint: last accessed after 2014/9/1 refers to LastAccessDate > '2014-09-01'


Prompt:
Which user has a higher reputation, Harlan or Jarrod Dixon?

Hint: "Harlan" and "Jarrod Dixon" are both DisplayName; highest reputation refers to Max(Reputation)


Prompt:
User No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get?

Hint: user no. 3025 refers to UserId = '3025'; comment at 20:29:39 on 2014/4/23 refers to CreationDate = '2014/4/23 20:29:39.0'


Prompt:
Please list the display names of all the users whose accounts were created in the year 2011.

Hint: account created in the year 2011 refers to year(CreationDate) = 2011


Prompt:
User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished?

Hint: user no. 23853 refers to UserId = '23853'; at 9:08:18 on 2013/7/12 refers to CreationDate = '2013-07-12 09:08:18.0'; not well-finished refers to ClosedDate IS NULL and vice versa


Prompt:
What is the excerpt post ID and wiki post ID of the tag named sample?

Hint: tag named sample refers to TagName = 'sample';


Prompt:
Which user have only one post history per post and having at least 1000 views?

Hint: having at least 1000 view refers to Views > = 1000; user refers to UserId


Prompt:
Among the posts owned by an elder user, how many of them have a score of over 19?

Hint: elder users refers to Age > 65; Score of over 19 refers to Score > = 20


Prompt:
Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?

Hint: "Understanding what Dassault iSight is doing?" is the Title of post; user refers to DisplayName;


Prompt:
Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post.

Hint: tagged as  'humor' refers to tag = '<humor>'; comment of the post refers to Text; average view count = AVG(ViewCount)


Prompt:
Write the contents of comments with a score of 17.

Hint: score of 17 refers to Score = 17; contents of comments refers to Text


Prompt:
Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?

Hint: percentage = DIVIDE(COUNT(UserId where UpVotes = 0 and Score BETWEEN 5 and 10))*100, (COUNT(UserId where Score BETWEEN 5 and 10));


Prompt:
Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time.

Hint: total views refer to ViewCount; Name the user refers to DisplayName; post 'Computer Game Datasets' refers to Text = 'Computer Game Datasets';


Prompt:
Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it.

Hint: the latest comment refers to MAX(CreationDate);


Prompt:
What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"?

Hint: "Examples for teaching: Correlation does not mean causation" is the Title of post; user who last edited refers to LastEditorUserId


Prompt:
Which is the most valuable post in 2010? Please give its id and the owner's display name.

Hint: the most valuable post in 2010 refers to MAX(FavoriteCount) where year(CreationDate) = 2010;


Prompt:
In the branch where the second-highest number of crimes were committed in 1995 occurred, how many male clients are there?

Hint: Male refers to gender = 'M'; A15 stands for no. of commited crimes 1995


Prompt:
List all the withdrawals in cash transactions that the client with the id 3356 makes.

Hint: operation = 'VYBER' refers to withdrawal in cash


Prompt:
What is the percentage of loan amount that has been fully paid with no issue.

Hint: Loan paid with no issue means contract finished, no problems; status = 'A' means contract finished, no problems; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100%


Prompt:
For loan amount less than USD100,000, what is the percentage of accounts that is still running with no issue.

Hint: Status = 'C' stands for running contract, ok so far; Percentage of accounts by condition = [(total(amount) & condition) / (total amount)] * 100.


Prompt:
How many accounts who choose issuance after transaction are staying in East Bohemia region?

Hint: A3 contains the data of region; 'POPLATEK PO OBRATU' represents for 'issuance after transaction'.


Prompt:
Name the account numbers of female clients who are oldest and have lowest average salary?

Hint: Female refers to 'F' in the gender; A11 contains information about average salary


Prompt:
How many accounts have running contracts in Branch location 1?

Hint: Status = 'C' stands for running contract, OK so far; Status = 'D' stands for running contract, client in debt


Prompt:
What percentage of clients who opened their accounts in the district with an average salary of over 10000 are women?

Hint: Female refers to gender = 'F'; Woman and female are closed; Average salary can be found in A11


Prompt:
What percentage of male clients request for weekly statements to be issued?

Hint: Percentage of male clients = [count(male clients who requested weekly statements / count(clients who requested weekly statements)] * 100%; Male means gender = 'M'; 'POPLATEK TYDNE' stands for weekly issuance


Prompt:
What is the average number of crimes committed in 1995 in regions where the number exceeds 4000 and the region has accounts that are opened starting from the year 1997?

Hint: A3 refers to region names; A15 stands for the average number of crimes commited in 1995.


Prompt:
List the top nine districts, by descending order, from the highest to the lowest, the number of female account holders.

Hint: A2 refers to districts; Female refers to gender = 'F'


Prompt:
Between 1/1/1995 and 12/31/1997, how many loans in the amount of at least 250,000 per account that chose monthly statement issuance were approved?

Hint: Frequency = 'POPLATEK MESICNE' stands for monthly issurance


Prompt:
For accounts in 1993 with statement issued after transaction, list the account ID, district name and district region.

Hint: Records about district names could be found in A2; A3 contains the information about regions. 'POPLATEK PO OBRATU' stands for issuance after transaction


Prompt:
Among the accounts who have loan validity more than 12 months, list out the accounts that have the highest approved amount and have account opening date in 1993.

Hint: Loan validity more than 12 months refers to duration > 12


Prompt:
For loans contracts which are still running where client are in debt, list the district of the and the state the percentage unemployment rate increment from year 1995 to 1996.

Hint: Unemployment increment rate in percentage = [(unemployment rate 2016 - unemployment rate 2015) / unemployment rate 2015] * 100; unemployment rate 2015 appears in the A12; unemployment rate 2016 appears in the A13; Loan contracts which are still running where client are in debt can be presented as status = 'D'


Prompt:
List out the account numbers of clients who are youngest and have highest average salary?

Hint: If the person A's birthdate < B's birthdate, it means that person B is younger than person A; A11 refers to average salary


Prompt:
What is the average amount of loan which are still on running contract with statement issuance after each transaction?

Hint: status = 'C' stands for running contract, OK so far; status = 'D' stands for running contract, client in debt. 'POPLATEK PO OBRATU' stands for issuance after transaction


Prompt:
Among the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement.

Hint: 'POPLATEK TYDNE' stands for weekly issuance


Prompt:
List out the no. of districts that have female average salary is more than 6000 but less than 10000?

Hint: A11 refers to average salary; Female mapps to gender = 'F'


Prompt:
Please list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000.

Hint: A11 represents the average salary; Salary and income share the similar meanings; when the account type = 'OWNER', it's eligible for loans


Prompt:
For the female client who was born in 1976/1/29, which district did she opened her account?

Hint: Female refers to gender = 'F'; A2 refers to district names


Prompt:
How often does account number 3 request an account statement to be released? What was the aim of debiting 3539 in total?

Hint: k_symbol refers to the purpose of payments


Prompt:
In February 2012, what percentage of customers consumed more than 528.3?

Hint: February 2012 refers to '201202' in yearmonth.date; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.


Prompt:
How many percent of LAM customer consumed more than 46.73?

Hint: Percentage of LAM customer consumed more than 46.73 = (Total no. of LAM customers who consumed more than 46.73 / Total no. of LAM customers) * 100.


Prompt:
Among the customers who paid in euro, how many of them have a monthly consumption of over 1000?

Hint: Pays in euro = Currency = 'EUR'.


Prompt:
What is the percentage of the customers who used EUR in 2012/8/25?

Hint: '2012/8/25' can be represented by '2012-08-25'


Prompt:
In 2012, who had the least consumption in LAM?

Hint: Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year.


Prompt:
For all the people who paid more than 29.00 per unit of product id No.5. Give their consumption status in the August of 2012.

Hint: August of 2012 refers to the Date value = '201208' ; Price per unit of product = Price / Amount;


Prompt:
Is it true that more SMEs pay in Czech koruna than in euros? If so, how many more?

Hint: Amount of more SMEs = Total of SMEs pay using Currency CZK - Total of SMEs pay using Currency EUR


Prompt:
Please list the countries of the gas stations with transactions taken place in June, 2013.

Hint: June 2013 refers to '201306'; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month;


Prompt: Please list the disparate time of the transactions taken place in the gas stations from chain no. 11.


Prompt:
How many more "discount" gas stations does the Czech Republic have compared to Slovakia?

Hint: Czech Republic can be represented as the Country value in gasstations table is 'CZE'; Slovakia can be represented as the Country value in the gasstations table is 'SVK';  Computation of more "discount" gas stations= Total no. of discount gas stations in Czech Republic - Total no. of discount gas stations in Slovakia


Prompt:
Which year recorded the most consumption of gas paid in CZK?

Hint: The first 4 strings of the Date values in the yearmonth table can represent year.


Prompt:
What is the difference in the annual average consumption of the customers with the least amount of consumption paid in CZK for 2013 between SME and LAM, LAM and KAM, and KAM and SME?

Hint: annual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.


Prompt:
Please list the product descriptions of the transactions taken place in the gas stations in the Czech Republic.

Hint: Czech Republic can be represented as the Country value in the gasstations table is 'CZE';


Prompt:
What was the gas consumption peak month for SME customers in 2013?

Hint: Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.


Prompt:
For the customer who paid 634.8 in 2012/8/25, what was the consumption decrease rate from Year 2012 to 2013?

Hint: '2012/8/24' can be represented by '2012-08-24'; Consumption decrease rate = (consumption_2012 - consumption_2013) / consumption_2012


Prompt:
Please list the product description of the products consumed in September, 2013.

Hint: September 2013 refers to 201309; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.


Prompt:
What was the difference in gas consumption between CZK-paying customers and EUR-paying customers in 2012?

Hint: Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year; Difference in Consumption = CZK customers consumption in 2012 - EUR customers consumption in 2012


Prompt:
For all the transactions happened during 8:00-9:00 in 2012/8/26, how many happened in CZE?

Hint: Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; '2012/8/26' can be represented by '2012-08-26'; during 8:00-9:00 can be represented as Time BETWEEN '08:00:00' AND '09:00:00'


Prompt:
What segment did the customer have at 2012/8/23 21:20:00?

Hint: '2012/8/23' can be represented by '2012-08-23'


Prompt:
Which of the three segments—SME, LAM and KAM—has the biggest and lowest percentage increases in consumption paid in EUR between 2012 and 2013?

Hint: Increase or Decrease = consumption for 2013 - consumption for 2012; Percentage of Increase = (Increase or Decrease / consumption for 2013) * 100%; The first 4 strings of the Date values in the yearmonth table can represent year


Prompt:
Among the transactions made in the gas stations in the Czech Republic, how many of them are taken place after 2012/1/1?

Hint: Czech Republic can be represented as the Country value in the gasstations table is 'CZE'


Prompt:
What's the nationality of the customer who spent 548.4 in 2012/8/24?

Hint: '2012/8/24' can be represented by '2012-08-24'