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: { _gt: 9386}})
|
| 4 |
+
{
|
| 5 |
+
Nickname
|
| 6 |
+
}
|
| 7 |
+
}"
|
| 8 |
+
SELECT Runs FROM table WHERE Batsmen = james bryant graeme welch,"query{
|
| 9 |
+
table(where: {Batsmen : {_eq : james bryant graeme welch}})
|
| 10 |
+
{
|
| 11 |
+
Runs
|
| 12 |
+
}
|
| 13 |
+
}"
|
| 14 |
+
"SELECT MAX Production in 2010 (1,000 ton) FROM table WHERE Country = Sweden","query{
|
| 15 |
+
table(limit = 1, order_by: {Production: desc}, where: {Country: {_eq : ""Sweden""}})
|
| 16 |
+
{
|
| 17 |
+
Production
|
| 18 |
+
}
|
| 19 |
+
}"
|
| 20 |
+
SELECT Date FROM table WHERE Field = hofstra stadium,"query{
|
| 21 |
+
table(where: {Field: {_eq: ""hofstra stadium""}})
|
| 22 |
+
{
|
| 23 |
+
Date
|
| 24 |
+
}
|
| 25 |
+
}"
|
| 26 |
+
SELECT Team 1 FROM table WHERE Team 2 = ulisses,"query{
|
| 27 |
+
table(where: {Team 2: {_eq: ""ulisses""}})
|
| 28 |
+
{
|
| 29 |
+
Team 1
|
| 30 |
+
}
|
| 31 |
+
}"
|
| 32 |
+
SELECT Type of Record FROM table WHERE Result/Games = B.C. 16 @ Edmonton 22,"query{
|
| 33 |
+
table(where: {Result/Games = ""B.C. 16 @ Edmonton 22""})
|
| 34 |
+
{
|
| 35 |
+
Record
|
| 36 |
+
}
|
| 37 |
+
}"
|
| 38 |
+
SELECT Country FROM table WHERE Name = pele,"query{
|
| 39 |
+
table(where: {Name: {_eq: ""pele""}})
|
| 40 |
+
{
|
| 41 |
+
Country
|
| 42 |
+
}
|
| 43 |
+
}"
|
| 44 |
+
SELECT COUNT Attendance FROM table WHERE Opponent = new orleans saints,"query{
|
| 45 |
+
table(:where : {opponent: {_eq : ""new orleans saints""}})
|
| 46 |
+
{
|
| 47 |
+
aggregate{
|
| 48 |
+
count
|
| 49 |
+
sum{
|
| 50 |
+
Attendance
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
}"
|
| 55 |
+
SELECT Registrations FROM table WHERE Station Number = C26,"query{
|
| 56 |
+
table(:where : {Station Number: {_eq: ""C26""}})
|
| 57 |
+
{
|
| 58 |
+
Registrations
|
| 59 |
+
}
|
| 60 |
+
}"
|
| 61 |
+
SELECT AVG Crowd FROM table WHERE Home team score = 9.8 (62),"query{
|
| 62 |
+
table(:where: {Home team score: {_eq : ""98(62)""}})
|
| 63 |
+
{
|
| 64 |
+
aggregate{
|
| 65 |
+
avg{
|
| 66 |
+
Crowd
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
}"
|
| 71 |
+
SELECT Title FROM table WHERE Release = August 27,"query{
|
| 72 |
+
table(: where: {Release: {_eq : ""August 27""}})
|
| 73 |
+
{
|
| 74 |
+
Title
|
| 75 |
+
}
|
| 76 |
+
}"
|
| 77 |
+
SELECT AVG Attendance FROM Students WHERE Round = f,"query{
|
| 78 |
+
Students(:where: {Round: {_eq : ""f""}})
|
| 79 |
+
{
|
| 80 |
+
aggregate{
|
| 81 |
+
avg{
|
| 82 |
+
Attendance
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
}"
|
| 87 |
+
SELECT Player FROM Players WHERE Score = 72-67-71=210,"query{
|
| 88 |
+
Players(where: {Score: {_eq : ""72-67-71=210""} })
|
| 89 |
+
{
|
| 90 |
+
Player
|
| 91 |
+
}
|
| 92 |
+
}"
|
| 93 |
+
SELECT League FROM table WHERE Year = 2010,"query{
|
| 94 |
+
table(where: {Year: {_eq : ""2010""}})
|
| 95 |
+
{
|
| 96 |
+
League
|
| 97 |
+
}
|
| 98 |
+
}"
|
| 99 |
+
"SELECT AVG BW 2013 FROM table WHERE AE 2011 = 1000 AND Location (State, City) = texas, fort worth AND FT 2011 < 1000","query{
|
| 100 |
+
table(where: {AE: {_eq: ""2011=1000""}, and: {Location (State, City): {_eq: ""texas, fort worth""}}, and: {FT 2011: {_lt: 1000}}})
|
| 101 |
+
{
|
| 102 |
+
aggregate{
|
| 103 |
+
avg{
|
| 104 |
+
BW
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
}"
|
| 109 |
+
SELECT SUM Gold FROM Golds WHERE Silver = 2 AND Nation = bulgaria (bul) OR Rank < 18,"query{
|
| 110 |
+
Golds(where: {Silver: {_eq: 2}}, and: {Nation: {_eq: ""bulgaria""}}, or: {rank: {_lt : 18}})
|
| 111 |
+
{
|
| 112 |
+
aggregate{
|
| 113 |
+
count
|
| 114 |
+
sum{
|
| 115 |
+
Gold
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
}"
|
| 120 |
+
SELECT High points FROM table WHERE Date = may 12,"query{
|
| 121 |
+
table(where: {Date: {_eq: ""may 12""}})
|
| 122 |
+
{
|
| 123 |
+
High points
|
| 124 |
+
}
|
| 125 |
+
}"
|
| 126 |
+
SELECT Opponents FROM table WHERE Partner = rushmi chakravarthi,"query{
|
| 127 |
+
table(where: {Partner: {_eq: ""rushmi chakravarti""}})
|
| 128 |
+
{
|
| 129 |
+
Opponents
|
| 130 |
+
}
|
| 131 |
+
}"
|
| 132 |
+
SELECT Broadcast date FROM table WHERE Viewers (in millions) = 6.4 AND Archive = 16mm t/r,"query{
|
| 133 |
+
table(where: {Viewers(in millions): {_eq: 6.4}}, and: {Archive: {_eq: ""16mm t/r""}})
|
| 134 |
+
{
|
| 135 |
+
Broadcast date
|
| 136 |
+
}
|
| 137 |
+
}"
|
| 138 |
+
SELECT Race Name FROM table WHERE Circuit = Monza,"query{
|
| 139 |
+
table(where: {Circuit: {_eq: ""Monza""}})
|
| 140 |
+
{
|
| 141 |
+
Race
|
| 142 |
+
}
|
| 143 |
+
}"
|