Added segment query to space
Merge pull request #3 from Kovak/master

Added segment query