| 1 |
select all from class movie |
| 2 |
Result table with 23 lines |
| 3 |
------------------------------ |
| 4 |
godf1 |
| 5 |
casino |
| 6 |
godf2 |
| 7 |
goodfellas |
| 8 |
capefear |
| 9 |
cityhall |
| 10 |
tdriver |
| 11 |
rbull |
| 12 |
bronxtale |
| 13 |
binstinct |
| 14 |
apclypnow |
| 15 |
showgirls |
| 16 |
faceoff |
| 17 |
meanstreets |
| 18 |
truerom |
| 19 |
deerhunter |
| 20 |
easyrider |
| 21 |
fan |
| 22 |
pulpfiction |
| 23 |
resdogs |
| 24 |
nbk |
| 25 |
doors |
| 26 |
redrockwest |
| 27 |
------------------------------ |
| 28 |
select p from p in class person |
| 29 |
Result table with 41 lines |
| 30 |
------------------------------ |
| 31 |
deniro |
| 32 |
stone1 |
| 33 |
pesci |
| 34 |
woods1 |
| 35 |
scorsese |
| 36 |
pileggi |
| 37 |
pacino |
| 38 |
duvall |
| 39 |
coppola |
| 40 |
puzo |
| 41 |
macdonald |
| 42 |
webb |
| 43 |
strick |
| 44 |
cusack |
| 45 |
fonda3 |
| 46 |
becker |
| 47 |
schrader |
| 48 |
palminteri |
| 49 |
douglas2 |
| 50 |
verhoeven |
| 51 |
eszterhas |
| 52 |
conrad |
| 53 |
brando |
| 54 |
sheen1 |
| 55 |
goldman1 |
| 56 |
gershon |
| 57 |
woo |
| 58 |
slater |
| 59 |
parquette |
| 60 |
hopper |
| 61 |
oldman |
| 62 |
walken |
| 63 |
tscott |
| 64 |
tarantino |
| 65 |
avary |
| 66 |
fonda1 |
| 67 |
southern |
| 68 |
nicholson |
| 69 |
travolta |
| 70 |
stone2 |
| 71 |
cage |
| 72 |
------------------------------ |
| 73 |
select m->Title, m->Director from m in class Movie |
| 74 |
Result table with 23 lines |
| 75 |
------------------------------ |
| 76 |
The Godfather coppola |
| 77 |
Casino scorsese |
| 78 |
The Godfather : Part II coppola |
| 79 |
Goodfellas scorsese |
| 80 |
Cape Fear scorsese |
| 81 |
City Hall becker |
| 82 |
Taxi Driver scorsese |
| 83 |
Raging Bull |
| 84 |
A Bronx Tale deniro |
| 85 |
Basic Instinct verhoeven |
| 86 |
Apocalypse Now coppola |
| 87 |
Showgirls verhoeven |
| 88 |
Face/Off woo |
| 89 |
Mean Streets scorsese |
| 90 |
True Romance tscott |
| 91 |
The Deer Hunter |
| 92 |
Easy Rider hopper |
| 93 |
The Fan tscott |
| 94 |
Pulp Fiction |
| 95 |
Reservoir Dogs |
| 96 |
Natural Born Killers stone2 |
| 97 |
The Doors stone2 |
| 98 |
Red Rock West |
| 99 |
------------------------------ |
| 100 |
select m->Title, m->Director->Full_name from m in class Movie |
| 101 |
Result table with 23 lines |
| 102 |
------------------------------ |
| 103 |
The Godfather Francis Ford Coppola |
| 104 |
Casino Martin Scorsese |
| 105 |
The Godfather : Part II Francis Ford Coppola |
| 106 |
Goodfellas Martin Scorsese |
| 107 |
Cape Fear Martin Scorsese |
| 108 |
City Hall Harold Becker |
| 109 |
Taxi Driver Martin Scorsese |
| 110 |
Raging Bull |
| 111 |
A Bronx Tale Robert de Niro |
| 112 |
Basic Instinct Paul Verhoeven |
| 113 |
Apocalypse Now Francis Ford Coppola |
| 114 |
Showgirls Paul Verhoeven |
| 115 |
Face/Off John Woo |
| 116 |
Mean Streets Martin Scorsese |
| 117 |
True Romance Tony Scott |
| 118 |
The Deer Hunter |
| 119 |
Easy Rider Dennis Hopper |
| 120 |
The Fan Tony Scott |
| 121 |
Pulp Fiction |
| 122 |
Reservoir Dogs |
| 123 |
Natural Born Killers Oliver Stone |
| 124 |
The Doors Oliver Stone |
| 125 |
Red Rock West |
| 126 |
------------------------------ |
| 127 |
select a->Full_name from m in class Movie, a in m->Based_on->Author |
| 128 |
Result table with 7 lines |
| 129 |
------------------------------ |
| 130 |
Mario Puzo |
| 131 |
Nicholas Pileggi |
| 132 |
Nicholas Pileggi |
| 133 |
Mario Puzo |
| 134 |
John D. MacDonald |
| 135 |
Chazz Palminteri |
| 136 |
Joseph Conrad |
| 137 |
------------------------------ |
| 138 |
select p->Full_name, p->Address[2] from p in class person |
| 139 |
Result table with 67 lines |
| 140 |
------------------------------ |
| 141 |
Robert de Niro New York |
| 142 |
Robert de Niro USA |
| 143 |
Robert de Niro [email protected] |
| 144 |
Robert de Niro 1-800-ROBERT |
| 145 |
Sharon Stone Meadville |
| 146 |
Sharon Stone Pennsylvania, USA |
| 147 |
Sharon Stone 0891-SHARON |
| 148 |
Joe Pesci Newark |
| 149 |
Joe Pesci New Jersey |
| 150 |
Joe Pesci USA |
| 151 |
James Woods |
| 152 |
Martin Scorsese Flushing |
| 153 |
Martin Scorsese New York |
| 154 |
Martin Scorsese USA |
| 155 |
Martin Scorsese [email protected] |
| 156 |
Nicholas Pileggi |
| 157 |
Al Pacino |
| 158 |
Robert Duvall |
| 159 |
Francis Ford Coppola Detroit |
| 160 |
Francis Ford Coppola Michigan |
| 161 |
Francis Ford Coppola USA |
| 162 |
Mario Puzo New York |
| 163 |
Mario Puzo USA |
| 164 |
Mario Puzo [email protected] |
| 165 |
John D. MacDonald |
| 166 |
James R. Webb |
| 167 |
Wesley Strick New York, USA |
| 168 |
John Cusack |
| 169 |
Bridget Fonda |
| 170 |
Harold Becker New York City |
| 171 |
Harold Becker New York, USA |
| 172 |
Paul Schrader Grand Rapids |
| 173 |
Paul Schrader Michigan |
| 174 |
Paul Schrader USA |
| 175 |
Chazz Palminteri |
| 176 |
Michael Douglas New Brunswick |
| 177 |
Michael Douglas New Jersey |
| 178 |
Michael Douglas USA |
| 179 |
Paul Verhoeven |
| 180 |
Joe Eszterhas |
| 181 |
Joseph Conrad |
| 182 |
Marlon Brando Omaha |
| 183 |
Marlon Brando Nebraska |
| 184 |
Marlon Brando USA |
| 185 |
Martin Sheen Dayton |
| 186 |
Martin Sheen Ohio, USA |
| 187 |
Bo Goldman |
| 188 |
Gina Gershon |
| 189 |
John Woo |
| 190 |
Christian Slater |
| 191 |
Patricia Arquette [email protected] |
| 192 |
Dennis Hopper Dodge City |
| 193 |
Dennis Hopper Kansas |
| 194 |
Dennis Hopper USA |
| 195 |
Gary Oldman New Cross |
| 196 |
Gary Oldman South London |
| 197 |
Gary Oldman England, UK |
| 198 |
Christopher Walken |
| 199 |
Tony Scott |
| 200 |
Quentin Tarantino |
| 201 |
Roger Avary |
| 202 |
Peter Fonda |
| 203 |
Terry Southern |
| 204 |
Jack Nicholson |
| 205 |
John Travolta |
| 206 |
Oliver Stone |
| 207 |
Nicholas Cage |
| 208 |
------------------------------ |
| 209 |
select p->Full_name, p->Phone from p in class person |
| 210 |
Result table with 41 lines |
| 211 |
------------------------------ |
| 212 |
Robert de Niro 1-800-ROBERT |
| 213 |
Sharon Stone 0891-SHARON |
| 214 |
Joe Pesci |
| 215 |
James Woods |
| 216 |
Martin Scorsese |
| 217 |
Nicholas Pileggi |
| 218 |
Al Pacino |
| 219 |
Robert Duvall |
| 220 |
Francis Ford Coppola |
| 221 |
Mario Puzo |
| 222 |
John D. MacDonald |
| 223 |
James R. Webb |
| 224 |
Wesley Strick |
| 225 |
John Cusack |
| 226 |
Bridget Fonda |
| 227 |
Harold Becker |
| 228 |
Paul Schrader |
| 229 |
Chazz Palminteri |
| 230 |
Michael Douglas |
| 231 |
Paul Verhoeven |
| 232 |
Joe Eszterhas |
| 233 |
Joseph Conrad |
| 234 |
Marlon Brando |
| 235 |
Martin Sheen |
| 236 |
Bo Goldman |
| 237 |
Gina Gershon |
| 238 |
John Woo |
| 239 |
Christian Slater |
| 240 |
Patricia Arquette |
| 241 |
Dennis Hopper |
| 242 |
Gary Oldman |
| 243 |
Christopher Walken |
| 244 |
Tony Scott |
| 245 |
Quentin Tarantino |
| 246 |
Roger Avary |
| 247 |
Peter Fonda |
| 248 |
Terry Southern |
| 249 |
Jack Nicholson |
| 250 |
John Travolta |
| 251 |
Oliver Stone |
| 252 |
Nicholas Cage |
| 253 |
------------------------------ |
| 254 |
select m->Title, d->Full_name from m in class Movie, d in m->Director where exists d |
| 255 |
Result table with 18 lines |
| 256 |
------------------------------ |
| 257 |
The Godfather Francis Ford Coppola |
| 258 |
Casino Martin Scorsese |
| 259 |
The Godfather : Part II Francis Ford Coppola |
| 260 |
Goodfellas Martin Scorsese |
| 261 |
Cape Fear Martin Scorsese |
| 262 |
City Hall Harold Becker |
| 263 |
Taxi Driver Martin Scorsese |
| 264 |
A Bronx Tale Robert de Niro |
| 265 |
Basic Instinct Paul Verhoeven |
| 266 |
Apocalypse Now Francis Ford Coppola |
| 267 |
Showgirls Paul Verhoeven |
| 268 |
Face/Off John Woo |
| 269 |
Mean Streets Martin Scorsese |
| 270 |
True Romance Tony Scott |
| 271 |
Easy Rider Dennis Hopper |
| 272 |
The Fan Tony Scott |
| 273 |
Natural Born Killers Oliver Stone |
| 274 |
The Doors Oliver Stone |
| 275 |
------------------------------ |
| 276 |
select m->Cast->Full_name from m in class Movie where m = "truerom" |
| 277 |
Result table with 5 lines |
| 278 |
------------------------------ |
| 279 |
Christian Slater |
| 280 |
Patricia Arquette |
| 281 |
Dennis Hopper |
| 282 |
Gary Oldman |
| 283 |
Christopher Walken |
| 284 |
------------------------------ |
| 285 |
select m->Title, year from m in class Movie, year in m->Released where year > `1990 |
| 286 |
Result table with 9 lines |
| 287 |
------------------------------ |
| 288 |
Casino 1995 |
| 289 |
City Hall 1996-02-16 |
| 290 |
A Bronx Tale 1993 |
| 291 |
Basic Instinct 1992-03-20 |
| 292 |
Showgirls 1996 |
| 293 |
Face/Off 1997 |
| 294 |
True Romance 1993 |
| 295 |
The Fan 1996 |
| 296 |
Red Rock West 1992 |
| 297 |
------------------------------ |
| 298 |
select m, m->Released from m in class movie where not exists m->Released |
| 299 |
Result table with 8 lines |
| 300 |
------------------------------ |
| 301 |
godf1 |
| 302 |
godf2 |
| 303 |
rbull |
| 304 |
deerhunter |
| 305 |
pulpfiction |
| 306 |
resdogs |
| 307 |
nbk |
| 308 |
doors |
| 309 |
------------------------------ |
| 310 |
select p->Full_name, yeardiff(p->Born, today) from p in class Person |
| 311 |
Result table with 41 lines |
| 312 |
------------------------------ |
| 313 |
Robert de Niro 55 |
| 314 |
Sharon Stone 40 |
| 315 |
Joe Pesci 55 |
| 316 |
James Woods |
| 317 |
Martin Scorsese 56 |
| 318 |
Nicholas Pileggi |
| 319 |
Al Pacino |
| 320 |
Robert Duvall |
| 321 |
Francis Ford Coppola 59 |
| 322 |
Mario Puzo 78 |
| 323 |
John D. MacDonald |
| 324 |
James R. Webb |
| 325 |
Wesley Strick |
| 326 |
John Cusack |
| 327 |
Bridget Fonda |
| 328 |
Harold Becker |
| 329 |
Paul Schrader 52 |
| 330 |
Chazz Palminteri |
| 331 |
Michael Douglas 54 |
| 332 |
Paul Verhoeven |
| 333 |
Joe Eszterhas |
| 334 |
Joseph Conrad |
| 335 |
Marlon Brando 74 |
| 336 |
Martin Sheen 58 |
| 337 |
Bo Goldman |
| 338 |
Gina Gershon |
| 339 |
John Woo |
| 340 |
Christian Slater |
| 341 |
Patricia Arquette |
| 342 |
Dennis Hopper 62 |
| 343 |
Gary Oldman 40 |
| 344 |
Christopher Walken |
| 345 |
Tony Scott |
| 346 |
Quentin Tarantino |
| 347 |
Roger Avary |
| 348 |
Peter Fonda |
| 349 |
Terry Southern |
| 350 |
Jack Nicholson |
| 351 |
John Travolta |
| 352 |
Oliver Stone |
| 353 |
Nicholas Cage 34 |
| 354 |
------------------------------ |
| 355 |
select p->Full_name, yeardiff(p->Born, today) from p in class Person where yeardiff(p->Born, today) > 55 |
| 356 |
Result table with 6 lines |
| 357 |
------------------------------ |
| 358 |
Martin Scorsese 56 |
| 359 |
Francis Ford Coppola 59 |
| 360 |
Mario Puzo 78 |
| 361 |
Marlon Brando 74 |
| 362 |
Martin Sheen 58 |
| 363 |
Dennis Hopper 62 |
| 364 |
------------------------------ |
| 365 |
select m->Title, year from m in class Movie, year in m->Released where yeardiff (year,`1990) > 0 |
| 366 |
Result table with 4 lines |
| 367 |
------------------------------ |
| 368 |
Taxi Driver 1976 |
| 369 |
Apocalypse Now 1979 |
| 370 |
Mean Streets 1973 |
| 371 |
Easy Rider 1969 |
| 372 |
------------------------------ |
| 373 |
select p->Full_name, count(select p->Stars_in) from p in class Person |
| 374 |
Result table with 41 lines |
| 375 |
------------------------------ |
| 376 |
Robert de Niro 10 |
| 377 |
Sharon Stone 2 |
| 378 |
Joe Pesci 4 |
| 379 |
James Woods 1 |
| 380 |
Martin Scorsese |
| 381 |
Nicholas Pileggi |
| 382 |
Al Pacino 2 |
| 383 |
Robert Duvall 2 |
| 384 |
Francis Ford Coppola |
| 385 |
Mario Puzo |
| 386 |
John D. MacDonald |
| 387 |
James R. Webb |
| 388 |
Wesley Strick |
| 389 |
John Cusack 2 |
| 390 |
Bridget Fonda 1 |
| 391 |
Harold Becker |
| 392 |
Paul Schrader |
| 393 |
Chazz Palminteri 1 |
| 394 |
Michael Douglas 1 |
| 395 |
Paul Verhoeven |
| 396 |
Joe Eszterhas |
| 397 |
Joseph Conrad |
| 398 |
Marlon Brando 2 |
| 399 |
Martin Sheen 1 |
| 400 |
Bo Goldman |
| 401 |
Gina Gershon 2 |
| 402 |
John Woo |
| 403 |
Christian Slater 1 |
| 404 |
Patricia Arquette 1 |
| 405 |
Dennis Hopper 4 |
| 406 |
Gary Oldman 1 |
| 407 |
Christopher Walken 2 |
| 408 |
Tony Scott |
| 409 |
Quentin Tarantino 1 |
| 410 |
Roger Avary |
| 411 |
Peter Fonda 1 |
| 412 |
Terry Southern |
| 413 |
Jack Nicholson 1 |
| 414 |
John Travolta 2 |
| 415 |
Oliver Stone |
| 416 |
Nicholas Cage 2 |
| 417 |
------------------------------ |
| 418 |
select m->Title from m in class Movie where count(select m->Cast) > 3 |
| 419 |
Result table with 4 lines |
| 420 |
------------------------------ |
| 421 |
Casino |
| 422 |
Apocalypse Now |
| 423 |
Face/Off |
| 424 |
True Romance |
| 425 |
------------------------------ |
| 426 |
select avg(select yeardiff(p->Born, now) from p in class Actor) |
| 427 |
Result table with 1 line |
| 428 |
------------------------------ |
| 429 |
52 |
| 430 |
------------------------------ |
| 431 |
select max(select m->released from m in class movie) |
| 432 |
Result table with 1 line |
| 433 |
------------------------------ |
| 434 |
1997 |
| 435 |
------------------------------ |
| 436 |
$x := count(select all class movie) |
| 437 |
Result table with 1 line |
| 438 |
------------------------------ |
| 439 |
23 |
| 440 |
------------------------------ |
| 441 |
$x := avg(select m->rating from m in class movie); select m->title, r from m in class movie, r in m->rating where r > $x |
| 442 |
Result table with 2 lines |
| 443 |
------------------------------ |
| 444 |
A Bronx Tale 8.6 |
| 445 |
Red Rock West 8.2 |
| 446 |
------------------------------ |