| SQL,GQL |
| SELECT Nickname FROM table WHERE Undergraduate Enrollment = 9386,"query{ |
| table(where: {undergraduate enrollment: { _gt: 9386}}) |
| { |
| Nickname |
| } |
| }" |
| SELECT Runs FROM table WHERE Batsmen = james bryant graeme welch,"query{ |
| table(where: {Batsmen : {_eq : james bryant graeme welch}}) |
| { |
| Runs |
| } |
| }" |
| "SELECT MAX Production in 2010 (1,000 ton) FROM table WHERE Country = Sweden","query{ |
| table(limit = 1, order_by: {Production: desc}, where: {Country: {_eq : ""Sweden""}}) |
| { |
| Production |
| } |
| }" |
| SELECT Date FROM table WHERE Field = hofstra stadium,"query{ |
| table(where: {Field: {_eq: ""hofstra stadium""}}) |
| { |
| Date |
| } |
| }" |
| SELECT Team 1 FROM table WHERE Team 2 = ulisses,"query{ |
| table(where: {Team 2: {_eq: ""ulisses""}}) |
| { |
| Team 1 |
| } |
| }" |
| SELECT Type of Record FROM table WHERE Result/Games = B.C. 16 @ Edmonton 22,"query{ |
| table(where: {Result/Games = ""B.C. 16 @ Edmonton 22""}) |
| { |
| Record |
| } |
| }" |
| SELECT Country FROM table WHERE Name = pele,"query{ |
| table(where: {Name: {_eq: ""pele""}}) |
| { |
| Country |
| } |
| }" |
| SELECT COUNT Attendance FROM table WHERE Opponent = new orleans saints,"query{ |
| table(:where : {opponent: {_eq : ""new orleans saints""}}) |
| { |
| aggregate{ |
| count |
| sum{ |
| Attendance |
| } |
| } |
| } |
| }" |
| SELECT Registrations FROM table WHERE Station Number = C26,"query{ |
| table(:where : {Station Number: {_eq: ""C26""}}) |
| { |
| Registrations |
| } |
| }" |
| SELECT AVG Crowd FROM table WHERE Home team score = 9.8 (62),"query{ |
| table(:where: {Home team score: {_eq : ""98(62)""}}) |
| { |
| aggregate{ |
| avg{ |
| Crowd |
| } |
| } |
| } |
| }" |
| SELECT Title FROM table WHERE Release = August 27,"query{ |
| table(: where: {Release: {_eq : ""August 27""}}) |
| { |
| Title |
| } |
| }" |
| SELECT AVG Attendance FROM Students WHERE Round = f,"query{ |
| Students(:where: {Round: {_eq : ""f""}}) |
| { |
| aggregate{ |
| avg{ |
| Attendance |
| } |
| } |
| } |
| }" |
| SELECT Player FROM Players WHERE Score = 72-67-71=210,"query{ |
| Players(where: {Score: {_eq : ""72-67-71=210""} }) |
| { |
| Player |
| } |
| }" |
| SELECT League FROM table WHERE Year = 2010,"query{ |
| table(where: {Year: {_eq : ""2010""}}) |
| { |
| League |
| } |
| }" |
| "SELECT AVG BW 2013 FROM table WHERE AE 2011 = 1000 AND Location (State, City) = texas, fort worth AND FT 2011 < 1000","query{ |
| table(where: {AE: {_eq: ""2011=1000""}, and: {Location (State, City): {_eq: ""texas, fort worth""}}, and: {FT 2011: {_lt: 1000}}}) |
| { |
| aggregate{ |
| avg{ |
| BW |
| } |
| } |
| } |
| }" |
| SELECT SUM Gold FROM Golds WHERE Silver = 2 AND Nation = bulgaria (bul) OR Rank < 18,"query{ |
| Golds(where: {Silver: {_eq: 2}}, and: {Nation: {_eq: ""bulgaria""}}, or: {rank: {_lt : 18}}) |
| { |
| aggregate{ |
| count |
| sum{ |
| Gold |
| } |
| } |
| } |
| }" |
| SELECT High points FROM table WHERE Date = may 12,"query{ |
| table(where: {Date: {_eq: ""may 12""}}) |
| { |
| High points |
| } |
| }" |
| SELECT Opponents FROM table WHERE Partner = rushmi chakravarthi,"query{ |
| table(where: {Partner: {_eq: ""rushmi chakravarti""}}) |
| { |
| Opponents |
| } |
| }" |
| SELECT Broadcast date FROM table WHERE Viewers (in millions) = 6.4 AND Archive = 16mm t/r,"query{ |
| table(where: {Viewers(in millions): {_eq: 6.4}}, and: {Archive: {_eq: ""16mm t/r""}}) |
| { |
| Broadcast date |
| } |
| }" |
| SELECT Race Name FROM table WHERE Circuit = Monza,"query{ |
| table(where: {Circuit: {_eq: ""Monza""}}) |
| { |
| Race |
| } |
| }" |