Patent ID: 7933916

Claim:
A method for querying a nonSQL index with a SQL query, said nonSQL index containing data associated with a social networking network, said method comprising: parsing the SQL query for query parameters, said query parameters specifying requested data associated with the social networking network, said parsing comprising: generating query parameters from a table list of a FROM clause of the SQL query, wherein said query parameters include the table list in a normalized syntax; and generating query parameters from a search condition of a WHERE clause of the SQL query, wherein said query parameters include the search condition in a matching metadata syntax; identifying a first nonSQL index type and a second nonSQL index type of the nonSQL index based on the query parameters, said second type different from said first type; generating a first nonSQL query based on the query parameters and the first type of nonSQL index; querying the nonSQL index with the generated first nonSQL query; receiving a first nonSQL result set from the nonSQL index based on the first nonSQL query; and generating a second nonSQL query based on the query parameters, the received first nonSQL result set and second type of the nonSQL index; querying the nonSQL index with the generated second nonSQL query to search for the requested data; receiving a second nonSQL result set from the nonSQL index based on the second nonSQL query; transforming the second nonSQL result set into a SQL result set based on the second type of the nonSQL index and the received SQL query, said SQL result set containing the requested data associated with the social networking network, wherein the SQL query includes a numeric range and the generated query parameters include a series of OR syntax elements, one for each number in the range.