Message Boards Message Boards

0
|
9276 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

How can I refine a query?

Posted 9 years ago

My input 'How many high school students are there in the USA in 2012' gets a perfect result. (17.28 million) Under 'Input interpretation' I see that 'high school students was translated into 'grade 9 to 12' - perfect! When however I put in 'How many grade 12 students are there in the USA in 2012', Wolfram Alpha gets very confused. Why? What should I ask?

Attachments:

In a case like this, most likely Wolfram|Alpha just doesn't have the data you are looking for.

If you want to have more control over your queries, you have to use Mathematica. The query above translates into the following code:

EntityValue[Entity["Country", "UnitedStates"], EntityProperty["Country", "PopulationBySchoolEnrollment", {"Enrolled" -> "9To12"}]]

If you look at the Entity Properties available to Entity["Country", "UnitedStates"], you'll see there aren't any for individual years.

If you would like to see this data in Wolfram|Alpha, you can leave a comment on the website wolframalpha.com. There is a team of curators who will be glad to file your suggestions.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract