designs.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. [
  2. {
  3. "name":"Sample: Top salary",
  4. "desc":"Top salary 2007 above $100k",
  5. "type":"0",
  6. "data":{
  7. "query":{
  8. "query":"SELECT sample_07.description, sample_07.salary\nFROM\n sample_07\nWHERE\n( sample_07.salary > 100000)\nORDER BY sample_07.salary DESC\nLIMIT 1000",
  9. "type":null,
  10. "email_notify":null,
  11. "is_parameterized":null
  12. },
  13. "functions":[ ],
  14. "VERSION":"0.4.0",
  15. "file_resources":[ ],
  16. "settings":[ ]
  17. }
  18. },
  19. {
  20. "name":"Sample: Salary growth",
  21. "desc":"Salary growth (sorted) from 2007-08",
  22. "type":"0",
  23. "data":{
  24. "query":{
  25. "query":"SELECT s07.description, s07.salary, s08.salary,\n s08.salary - s07.salary\nFROM\n sample_07 s07 JOIN sample_08 s08\nON ( s07.code = s08.code)\nWHERE\n s07.salary < s08.salary\nORDER BY s08.salary-s07.salary DESC\nLIMIT 1000",
  26. "type":null,
  27. "email_notify":null,
  28. "is_parameterized":null
  29. },
  30. "functions":[ ],
  31. "VERSION":"0.4.0",
  32. "file_resources":[ ],
  33. "settings":[ ]
  34. }
  35. },
  36. {
  37. "name":"Sample: Job loss",
  38. "desc":"Job loss among the top earners 2007-08",
  39. "type":"0",
  40. "data":{
  41. "query":{
  42. "query":"SELECT s07.description, s07.total_emp, s08.total_emp, s07.salary\nFROM\n sample_07 s07 JOIN \n sample_08 s08\nON ( s07.code = s08.code )\nWHERE\n( s07.total_emp > s08.total_emp\n AND s07.salary > 100000 )\nORDER BY s07.salary DESC\nLIMIT 1000",
  43. "type":null,
  44. "email_notify":null,
  45. "is_parameterized":null
  46. },
  47. "functions":[ ],
  48. "VERSION":"0.4.0",
  49. "file_resources":[ ],
  50. "settings":[ ]
  51. }
  52. }
  53. ]