Datasets:

Modalities:
Text
Formats:
json
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
File size: 364,993 Bytes
a83595a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
[
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "How many singers do we have?",
    "SpiderSynQuestion": "How many vocalists do we have?",
    "query": "SELECT count(*) FROM singer"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the total number of singers?",
    "SpiderSynQuestion": "What is the total number of musicians?",
    "query": "SELECT count(*) FROM singer"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show name, country, age for all singers ordered by age from the oldest to the youngest.",
    "SpiderSynQuestion": "Show name, nationality, age for all vocalists ordered by age from the oldest to the youngest.",
    "query": "SELECT name ,  country ,  age FROM singer ORDER BY age DESC"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names, countries, and ages for every singer in descending order of age?",
    "SpiderSynQuestion": "What are the names, nationalities, and ages for every musicians in descending order of age?",
    "query": "SELECT name ,  country ,  age FROM singer ORDER BY age DESC"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the average, minimum, and maximum age of all singers from France?",
    "SpiderSynQuestion": "What is the average, minimum, and maximum age of all vocalists from France?",
    "query": "SELECT avg(age) ,  min(age) ,  max(age) FROM singer WHERE country  =  'France'"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the average, minimum, and maximum age for all French singers?",
    "SpiderSynQuestion": "What is the average, minimum, and maximum age for all French musicians?",
    "query": "SELECT avg(age) ,  min(age) ,  max(age) FROM singer WHERE country  =  'France'"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show the name and the release year of the song by the youngest singer.",
    "SpiderSynQuestion": "Show the name and the publish year of the song by the youngest vocalists.",
    "query": "SELECT song_name ,  song_release_year FROM singer ORDER BY age LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names and release years for all the songs of the youngest singer?",
    "SpiderSynQuestion": "What are the names and publish years for all the songs of the youngest musicians?",
    "query": "SELECT song_name ,  song_release_year FROM singer ORDER BY age LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are all distinct countries where singers above age 20 are from?",
    "SpiderSynQuestion": "What are all distinct nationalities where vocalists above age 20 are from?",
    "query": "SELECT DISTINCT country FROM singer WHERE age  >  20"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are  the different countries with singers above age 20?",
    "SpiderSynQuestion": "What are the different nationalities with musicians above age 20?",
    "query": "SELECT DISTINCT country FROM singer WHERE age  >  20"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show all countries and the number of singers in each country.",
    "SpiderSynQuestion": "Show all State and the number of vocalists in each country.",
    "query": "SELECT country ,  count(*) FROM singer GROUP BY country"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "How many singers are from each country?",
    "SpiderSynQuestion": "How many musicians are from each State?",
    "query": "SELECT country ,  count(*) FROM singer GROUP BY country"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "List all song names by singers above the average age.",
    "SpiderSynQuestion": "List all music titles by vocalists above the average age.",
    "query": "SELECT song_name FROM singer WHERE age  >  (SELECT avg(age) FROM singer)"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are all the song names by singers who are older than average?",
    "SpiderSynQuestion": "What are all the music titles by musicians who are older than average?",
    "query": "SELECT song_name FROM singer WHERE age  >  (SELECT avg(age) FROM singer)"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show location and name for all stadiums with a capacity between 5000 and 10000.",
    "SpiderSynQuestion": "Show position and name for all stadiums with number of seats between 5000 and 10000.",
    "query": "SELECT LOCATION ,  name FROM stadium WHERE capacity BETWEEN 5000 AND 10000"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the locations and names of all stations with capacity between 5000 and 10000?",
    "SpiderSynQuestion": "What are the addresses and names of all stations with number of seats between 5000 and 10000?",
    "query": "SELECT LOCATION ,  name FROM stadium WHERE capacity BETWEEN 5000 AND 10000"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the average and the maximum capacity of all stadiums?",
    "SpiderSynQuestion": "What is the average and the maximum seats of all stadiums?",
    "query": "SELECT avg(capacity) ,  max(capacity) FROM stadium"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the average and maximum capacities for all stations?",
    "SpiderSynQuestion": "What is the average and maximum seats for all stations?",
    "query": "SELECT avg(capacity) ,  max(capacity) FROM stadium"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the name and capacity for the stadium with highest average attendance?",
    "SpiderSynQuestion": "What is the name and number of seats for the stadium with highest average attendance?",
    "query": "SELECT name ,  capacity FROM stadium ORDER BY average DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the name and capacity for the stadium with the highest average attendance?",
    "SpiderSynQuestion": "What is the name and number of seats for the stadium with the highest average attendance?",
    "query": "SELECT name ,  capacity FROM stadium ORDER BY average DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "How many concerts are there in year 2014 or 2015?",
    "SpiderSynQuestion": "How many shows are there in year 2014 or 2015?",
    "query": "SELECT count(*) FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "How many concerts occurred in 2014 or 2015?",
    "SpiderSynQuestion": "How many shows occurred in 2014 or 2015?",
    "query": "SELECT count(*) FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show the stadium name and the number of concerts in each stadium.",
    "SpiderSynQuestion": "Show the stadium name and the number of shows in each stadium.",
    "query": "SELECT T2.name ,  count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id GROUP BY T1.stadium_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "For each stadium, how many concerts play there?",
    "SpiderSynQuestion": "For each stadium, how many shows play there?",
    "query": "SELECT T2.name ,  count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id GROUP BY T1.stadium_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show the stadium name and capacity with most number of concerts in year 2014 or after.",
    "SpiderSynQuestion": "Show the stadium name and number of seats with most number of shows in year 2014 or after.",
    "query": "SELECT T2.name ,  T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  >=  2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the name and capacity of the stadium  with the most concerts after 2013?",
    "SpiderSynQuestion": "What is the name and number of seats of the stadium with the most shows after 2013?",
    "query": "SELECT T2.name ,  T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  >=  2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Which year has most number of concerts?",
    "SpiderSynQuestion": "Which year has most number of shows?",
    "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the year that had the most concerts?",
    "SpiderSynQuestion": "What is the time that had the most shows?",
    "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show the stadium names without any concert.",
    "SpiderSynQuestion": "Show the stadium names without any shows.",
    "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names of the stadiums without any concerts?",
    "SpiderSynQuestion": "What are the names of the stadiums without any shows?",
    "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show countries where a singer above age 40 and a singer below 30 are from.",
    "SpiderSynQuestion": "Show States where a singer above age 40 and a singer below 30 are from.",
    "query": "SELECT country FROM singer WHERE age  >  40 INTERSECT SELECT country FROM singer WHERE age  <  30"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show names for all stadiums except for stadiums having a concert in year 2014.",
    "SpiderSynQuestion": "Show names for all stadiums except for stadiums having a shows in year 2014.",
    "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  =  2014"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names of all stadiums that did not have a concert in 2014?",
    "SpiderSynQuestion": "What are the names of all stadiums that did not have a shows in 2014?",
    "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  =  2014"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Show the name and theme for all concerts and the number of singers in each concert.",
    "SpiderSynQuestion": "Show the name and theme for all shows and the number of vocalists in each shows.",
    "query": "SELECT T2.concert_name ,  T2.theme ,  count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id  =  T2.concert_id GROUP BY T2.concert_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names, themes, and number of singers for each and every concert?",
    "SpiderSynQuestion": "What are the names, themes, and number of singers for each and every show?",
    "query": "SELECT T2.concert_name ,  T2.theme ,  count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id  =  T2.concert_id GROUP BY T2.concert_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "List singer names and number of concerts for each singer.",
    "SpiderSynQuestion": "List singer names and number of shows for each musicians.",
    "query": "SELECT T2.name ,  count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id GROUP BY T2.singer_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names of the singers and number of concerts for each person?",
    "SpiderSynQuestion": "What are the names of the singers and number of shows for each person?",
    "query": "SELECT T2.name ,  count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id GROUP BY T2.singer_id"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "List all singer names in concerts in year 2014.",
    "SpiderSynQuestion": "List all vocalist names in shows in year 2014.",
    "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id JOIN concert AS T3 ON T1.concert_id  =  T3.concert_id WHERE T3.year  =  2014"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names of the singers who performed in a concert in 2014?",
    "SpiderSynQuestion": "What are the names of the musicians who performed in a musical performance in 2014?",
    "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id JOIN concert AS T3 ON T1.concert_id  =  T3.concert_id WHERE T3.year  =  2014"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "what is the name and nation of the singer who have a song having 'Hey' in its name?",
    "SpiderSynQuestion": "what is the name and nation of the vocalist who have a song having 'Hey' in its title?",
    "query": "SELECT name ,  country FROM singer WHERE song_name LIKE '%Hey%'"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?",
    "SpiderSynQuestion": "What is the name and nationality of origin of every musicians who has a song with the word 'Hey' in its title?",
    "query": "SELECT name ,  country FROM singer WHERE song_name LIKE '%Hey%'"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.",
    "SpiderSynQuestion": "Find the name and position of the stadiums which some musical performances happened in the years of both 2014 and 2015.",
    "query": "SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2014 INTERSECT SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2015"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?",
    "SpiderSynQuestion": "What are the names and addresses of the stadiums that had musical performances that occurred in both 2014 and 2015?",
    "query": "SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2014 INTERSECT SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2015"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "Find the number of concerts happened in the stadium with the highest capacity.",
    "SpiderSynQuestion": "Find the number of musical performances happened in the stadium with the highest number of seats.",
    "query": "SELECT count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id ORDER BY T2.Capacity DESC LIMIT 1"
  },
  {
    "db_id": "concert_singer",
    "SpiderQuestion": "What are the number of concerts that occurred in the stadium with the largest capacity?",
    "SpiderSynQuestion": "What are the number of musical performances that occurred in the stadium with the largest number of seats?",
    "query": "SELECT count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id ORDER BY T2.Capacity DESC LIMIT 1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the number of pets whose weight is heavier than 10.",
    "SpiderSynQuestion": "Find the number of animals who is heavier than 10.",
    "query": "SELECT count(*) FROM pets WHERE weight  >  10"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "How many pets have a greater weight than 10?",
    "SpiderSynQuestion": "How many animals heavier than 10?",
    "query": "SELECT count(*) FROM pets WHERE weight  >  10"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the weight of the youngest dog.",
    "SpiderSynQuestion": "Find the weight of the youngest puppy.",
    "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "How much does the youngest dog weigh?",
    "SpiderSynQuestion": "How much does the youngest puppy weigh?",
    "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the maximum weight for each type of pet. List the maximum weight and pet type.",
    "SpiderSynQuestion": "Find the maximum weight for each category of pet. List the maximum weight and pet category.",
    "query": "SELECT max(weight) ,  petType FROM pets GROUP BY petType"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "List the maximum weight and type for each type of pet.",
    "SpiderSynQuestion": "List the maximum weight and category for each species of domestic animals.",
    "query": "SELECT max(weight) ,  petType FROM pets GROUP BY petType"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find number of pets owned by students who are older than 20.",
    "SpiderSynQuestion": "Find number of animals owned by students who are older than 20.",
    "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.age  >  20"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "How many pets are owned by students that have an age greater than 20?",
    "SpiderSynQuestion": "How many animals are owned by students that have an age greater than 20?",
    "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.age  >  20"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the number of dog pets that are raised by female students (with sex F).",
    "SpiderSynQuestion": "Find the number of puppies that are raised by female students (with gender F).",
    "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T2.petid  =  T3.petid WHERE T1.sex  =  'F' AND T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "How many dog pets are raised by female students?",
    "SpiderSynQuestion": "How many puppies are raised by female students?",
    "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T2.petid  =  T3.petid WHERE T1.sex  =  'F' AND T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the number of distinct type of pets.",
    "SpiderSynQuestion": "Find the number of distinct species of domestic animals.",
    "query": "SELECT count(DISTINCT pettype) FROM pets"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "How many different types of pet are there?",
    "SpiderSynQuestion": "How many different species of animals are there?",
    "query": "SELECT count(DISTINCT pettype) FROM pets"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the first name of students who have cat or dog pet.",
    "SpiderSynQuestion": "Find the given name of students who have kitten or puppy pet.",
    "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' OR T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What are the first names of every student who has a cat or dog as a pet?",
    "SpiderSynQuestion": "What are the given names of every student who has a kitten or puppy as a pet?",
    "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' OR T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the name of students who have both cat and dog pets.",
    "SpiderSynQuestion": "Find the name of students who have both kitten and puppy pets.",
    "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What are the students' first names who have both cats and dogs as pets?",
    "SpiderSynQuestion": "What are the students' given names who have both kittens and puppies as pets?",
    "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the major and age of students who do not have a cat pet.",
    "SpiderSynQuestion": "Find the major and age of students who do not have a kitten pet.",
    "query": "SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What major is every student who does not own a cat as a pet, and also how old are they?",
    "SpiderSynQuestion": "What discipline is every student who does not own a kitten as a pet, and also how old are they?",
    "query": "SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the id of students who do not have a cat pet.",
    "SpiderSynQuestion": "Find the id of students who do not have a kitten pet.",
    "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What are the ids of the students who do not own cats as pets?",
    "SpiderSynQuestion": "What are the ids of the students who do not own kittens as pets?",
    "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the first name and age of students who have a dog but do not have a cat as a pet.",
    "SpiderSynQuestion": "Find the given name and age of students who have a puppy but do not have a cat as a pet.",
    "query": "SELECT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the first name of every student who has a dog but does not have a cat?",
    "SpiderSynQuestion": "What is the given name of every student who has a dog but does not have a kitten?",
    "query": "SELECT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the type and weight of the youngest pet.",
    "SpiderSynQuestion": "Find the category and weight of the youngest pet.",
    "query": "SELECT pettype ,  weight FROM pets ORDER BY pet_age LIMIT 1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What type of pet is the youngest animal, and how much does it weigh?",
    "SpiderSynQuestion": "What species of animal is the youngest animal, and how much does it weigh?",
    "query": "SELECT pettype ,  weight FROM pets ORDER BY pet_age LIMIT 1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the id and weight of all pets whose age is older than 1.",
    "SpiderSynQuestion": "Find the id and weight of all animals whose age is older than 1.",
    "query": "SELECT petid ,  weight FROM pets WHERE pet_age  >  1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the id and weight of every pet who is older than 1?",
    "SpiderSynQuestion": "What is the id and weight of every animals who is older than 1?",
    "query": "SELECT petid ,  weight FROM pets WHERE pet_age  >  1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the average and maximum age for each type of pet.",
    "SpiderSynQuestion": "Find the average and maximum age for each species of animal.",
    "query": "SELECT avg(pet_age) ,  max(pet_age) ,  pettype FROM pets GROUP BY pettype"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the average and maximum age for each pet type?",
    "SpiderSynQuestion": "What is the average and maximum age for each pet species?",
    "query": "SELECT avg(pet_age) ,  max(pet_age) ,  pettype FROM pets GROUP BY pettype"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the average weight for each pet type.",
    "SpiderSynQuestion": "Find the average weight for each pet category.",
    "query": "SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the average weight for each type of pet?",
    "SpiderSynQuestion": "What is the average weight for each species of pet?",
    "query": "SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the first name and age of students who have a pet.",
    "SpiderSynQuestion": "Find the given name and age of students who have a pet.",
    "query": "SELECT DISTINCT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What are the different first names and ages of the students who do have pets?",
    "SpiderSynQuestion": "What are the different given names and ages of the students who do have pets?",
    "query": "SELECT DISTINCT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the id of the pet owned by student whose last name is 'Smith'.",
    "SpiderSynQuestion": "Find the id of the animals owned by student whose family name is 'Smith'.",
    "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.Lname  =  'Smith'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the id of the pet owned by the student whose last name is 'Smith'?",
    "SpiderSynQuestion": "What is the id of the animals owned by the student whose family name is 'Smith'?",
    "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.Lname  =  'Smith'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the number of pets for each student who has any pet and student id.",
    "SpiderSynQuestion": "Find the number of animals for each student who has any pet and student id.",
    "query": "SELECT count(*) ,  T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "For students who have pets, how many pets does each student have?",
    "SpiderSynQuestion": "For students who have pets, how many animals does each student have?",
    "query": "SELECT count(*) ,  T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the first name and gender of student who have more than one pet.",
    "SpiderSynQuestion": "Find the given name and gender of student who have more than one pet.",
    "query": "SELECT T1.fname ,  T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid HAVING count(*)  >  1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the first name and gender of the all the students who have more than one pet?",
    "SpiderSynQuestion": "What is the given name and gender of the all the students who have more than one pet?",
    "query": "SELECT T1.fname ,  T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid HAVING count(*)  >  1"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the last name of the student who has a cat that is age 3.",
    "SpiderSynQuestion": "Find the family name of the student who has a kitten that is age 3.",
    "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pet_age  =  3 AND T3.pettype  =  'cat'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the last name of the student who has a cat that is 3 years old?",
    "SpiderSynQuestion": "What is the family name of the student who has a kitten that is 3 years old?",
    "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pet_age  =  3 AND T3.pettype  =  'cat'"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "Find the average age of students who do not have any pet.",
    "SpiderSynQuestion": "Find the average age of students who do not have any pet.",
    "query": "SELECT avg(age) FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid)"
  },
  {
    "db_id": "pets_1",
    "SpiderQuestion": "What is the average age for all students who do not own any pets?",
    "SpiderSynQuestion": "What is the average age for all students who do not own any pets?",
    "query": "SELECT avg(age) FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid)"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many continents are there?",
    "SpiderSynQuestion": "How many continents are there?",
    "query": "SELECT count(*) FROM CONTINENTS;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of continents?",
    "SpiderSynQuestion": "What is the number of continents?",
    "query": "SELECT count(*) FROM CONTINENTS;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many countries does each continent have? List the continent id, continent name and the number of countries.",
    "SpiderSynQuestion": "How many States does each continent have? List the continent id, continent name and the number of nations.",
    "query": "SELECT T1.ContId ,  T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.Continent GROUP BY T1.ContId;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "For each continent, list its id, name, and how many countries it has?",
    "SpiderSynQuestion": "For each continent, list its id, name, and how many States it has?",
    "query": "SELECT T1.ContId ,  T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.Continent GROUP BY T1.ContId;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many countries are listed?",
    "SpiderSynQuestion": "How many States are listed?",
    "query": "SELECT count(*) FROM COUNTRIES;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many countries exist?",
    "SpiderSynQuestion": "How many countries exist?",
    "query": "SELECT count(*) FROM COUNTRIES;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many models does each car maker produce? List maker full name, id and the number.",
    "SpiderSynQuestion": "How many models does each car manufacturer produce? List manufacturer full name, id and the number.",
    "query": "SELECT T1.FullName ,  T1.Id ,  count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the full name of each car maker, along with its id and how many models it produces?",
    "SpiderSynQuestion": "What is the full name of each car manufacturer, along with its id and how many models it produces?",
    "query": "SELECT T1.FullName ,  T1.Id ,  count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which model of the car has the minimum horsepower?",
    "SpiderSynQuestion": "Which model of the vehicle has the minimum horsepower?",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.horsepower ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the model of the car with the smallest amount of horsepower?",
    "SpiderSynQuestion": "What is the model of the vehicle with the smallest amount of power?",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.horsepower ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Find the model of the car whose weight is below the average weight.",
    "SpiderSynQuestion": "Find the model of the vehicle who is lighter than the average.",
    "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Weight  <  (SELECT avg(Weight) FROM CARS_DATA)"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the model for the car with a weight smaller than the average?",
    "SpiderSynQuestion": "What is the model for the vehicle with a weight smaller than the average?",
    "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Weight  <  (SELECT avg(Weight) FROM CARS_DATA)"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Find the name of the makers that produced some cars in the year of 1970?",
    "SpiderSynQuestion": "Find the name of the manufacturer that produced some vehicles in the year of 1970?",
    "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model JOIN CARS_DATA AS T4 ON T3.MakeId  =  T4.id WHERE T4.year  =  '1970';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the name of the different car makers who produced a car in 1970?",
    "SpiderSynQuestion": "What is the name of the different car manufacturers who produced a vehicle in 1970?",
    "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model JOIN CARS_DATA AS T4 ON T3.MakeId  =  T4.id WHERE T4.year  =  '1970';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Find the make and production time of the cars that were produced in the earliest year?",
    "SpiderSynQuestion": "Find the make and production time of the vehicles that were produced in the earliest year?",
    "query": "SELECT T2.Make ,  T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Year  =  (SELECT min(YEAR) FROM CARS_DATA);"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maker of the car produced in the earliest year and what year was it?",
    "SpiderSynQuestion": "What is the manufacturer of the vehicle produced in the earliest year and what year was it?",
    "query": "SELECT T2.Make ,  T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Year  =  (SELECT min(YEAR) FROM CARS_DATA);"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which distinct car models are the produced after 1980?",
    "SpiderSynQuestion": "Which distinct vehicle models are the produced after 1980?",
    "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model  =  T2.model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.id WHERE T3.year  >  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the different models for the cards produced after 1980?",
    "SpiderSynQuestion": "What are the different models for the vehicles produced after 1980?",
    "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model  =  T2.model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.id WHERE T3.year  >  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many car makers are there in each continents? List the continent name and the count.",
    "SpiderSynQuestion": "How many car manufacturers are there in each continents? List the continent name and the count.",
    "query": "SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the name of each continent and how many car makers are there in each one?",
    "SpiderSynQuestion": "What is the name of each continent and how many vehicle manufacturers are there in each one?",
    "query": "SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which of the countries has the most car makers? List the country name.",
    "SpiderSynQuestion": "Which of the States has the most car manufacturers? List the State name.",
    "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the name of the country with the most car makers?",
    "SpiderSynQuestion": "What is the name of the State with the most vehicle manufacturers?",
    "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many car models are produced by each maker? List the count and the maker full name.",
    "SpiderSynQuestion": "How many vehicle models are produced by each manufacturer? List the count and the manufacturer full name.",
    "query": "SELECT Count(*) ,  T2.FullName  FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?",
    "SpiderSynQuestion": "What is the number of vehicle models that are produced by each manufacturer and what is the id and full name of each manufacturer?",
    "query": "SELECT Count(*) ,  T2.FullName ,  T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the accelerate of the car make amc hornet sportabout (sw)?",
    "SpiderSynQuestion": "What is the accelerate of the vehicle make amc hornet sportabout (sw)?",
    "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Make  =  'amc hornet sportabout (sw)';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How much does the car accelerate that makes amc hornet sportabout (sw)?",
    "SpiderSynQuestion": "How much does the vehicle accelerate that makes out amc hornet sportabout (sw)?",
    "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Make  =  'amc hornet sportabout (sw)';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many car makers are there in france?",
    "SpiderSynQuestion": "How many French car manufacturers are there?",
    "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'france';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of makers of car in France?",
    "SpiderSynQuestion": "What is the number of manufacturers of vehicle in France?",
    "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'france';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many car models are produced in the usa?",
    "SpiderSynQuestion": "How many vehicle models are produced in the usa?",
    "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id JOIN COUNTRIES AS T3 ON T2.Country  =  T3.CountryId WHERE T3.CountryName  =  'usa';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the count of the car models produced in the United States?",
    "SpiderSynQuestion": "What is the count of the vehicle models produced in the United States?",
    "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id JOIN COUNTRIES AS T3 ON T2.Country  =  T3.CountryId WHERE T3.CountryName  =  'usa';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?",
    "SpiderSynQuestion": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?",
    "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders  =  4;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average miles per gallon of all the cars with 4 cylinders?",
    "SpiderSynQuestion": "What is the average miles per gallon of all the cars with 4 cylinders?",
    "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders  =  4;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the smallest weight of the car produced with 8 cylinders on 1974?",
    "SpiderSynQuestion": "What is the smallest weight of the car produced with 8 cylinders on 1974?",
    "query": "SELECT Weight FROM CARS_DATA WHERE Cylinders  =  8 AND YEAR  =  1974 ORDER BY Weight ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the minimu weight of the car with 8 cylinders produced in 1974?",
    "SpiderSynQuestion": "What is the minimu weight of the car with 8 cylinders produced in 1974?",
    "query": "SELECT Weight FROM CARS_DATA WHERE Cylinders  =  8 AND YEAR  =  1974 ORDER BY Weight ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are all the makers and models?",
    "SpiderSynQuestion": "What are all the companies and models?",
    "query": "SELECT Maker ,  Model FROM MODEL_LIST;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the makers and models?",
    "SpiderSynQuestion": "What are the manufacturers and models?",
    "query": "SELECT Maker ,  Model FROM MODEL_LIST;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the countries having at least one car maker? List name and id.",
    "SpiderSynQuestion": "What are the States having at least one vehicle manufacturer? List name and id.",
    "query": "SELECT T1.CountryName ,  T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >=  1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the names and ids of all countries with at least one car maker?",
    "SpiderSynQuestion": "What are the names and ids of all States with at least one vehicle manufacturer?",
    "query": "SELECT T1.CountryName ,  T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >=  1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of the cars with horsepower more than 150?",
    "SpiderSynQuestion": "What is the number of the vehicle with power more than 150?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower  >  150;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of cars with a horsepower greater than 150?",
    "SpiderSynQuestion": "What is the number of vehicles with a power greater than 150?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower  >  150;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average weight of cars each year?",
    "SpiderSynQuestion": "What is the average weight of vehicles each year?",
    "query": "SELECT avg(Weight) ,  YEAR FROM CARS_DATA GROUP BY YEAR;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average weight and year for each year?",
    "SpiderSynQuestion": "What is the average weight and year for each year?",
    "query": "SELECT avg(Weight) ,  YEAR FROM CARS_DATA GROUP BY YEAR;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which countries in europe have at least 3 car manufacturers?",
    "SpiderSynQuestion": "Which States in europe have at least 3 vehicle manufacturers?",
    "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent  =  T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId  =  T3.Country WHERE T2.Continent  =  'europe' GROUP BY T1.CountryName HAVING count(*)  >=  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the names of all European countries with at least 3 manufacturers?",
    "SpiderSynQuestion": "What are the names of all European States with at least 3 manufacturers?",
    "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent  =  T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId  =  T3.Country WHERE T2.Continent  =  'europe' GROUP BY T1.CountryName HAVING count(*)  >=  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maximum horsepower and the make of the car models with 3 cylinders?",
    "SpiderSynQuestion": "What is the maximum power and the manufacturer of the vehicle models with 3 cylinders?",
    "query": "SELECT T2.horsepower ,  T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.cylinders  =  3 ORDER BY T2.horsepower DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?",
    "SpiderSynQuestion": "What is the largest amount of power for the models with 3 cylinders and what manufacturer is it?",
    "query": "SELECT T2.horsepower ,  T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.cylinders  =  3 ORDER BY T2.horsepower DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.",
    "SpiderSynQuestion": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.mpg DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the car model with the highest mpg?",
    "SpiderSynQuestion": "What is the automobile model with the highest mpg?",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.mpg DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average horsepower of the cars before 1980?",
    "SpiderSynQuestion": "What is the average power of the automobile before 1980?",
    "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR  <  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average horsepower for all cars produced before 1980?",
    "SpiderSynQuestion": "What is the average power for all automobiles produced before 1980?",
    "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR  <  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average edispl of the cars of model volvo?",
    "SpiderSynQuestion": "What is the average edispl of the automobile of model volvo?",
    "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model  =  'volvo';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the average edispl for all volvos?",
    "SpiderSynQuestion": "What is the average edispl for all volvos?",
    "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model  =  'volvo';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maximum accelerate for different number of cylinders?",
    "SpiderSynQuestion": "What is the maximum accelerate for different number of cylinders?",
    "query": "SELECT max(Accelerate) ,  Cylinders FROM CARS_DATA GROUP BY Cylinders;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maximum accelerate for all the different cylinders?",
    "SpiderSynQuestion": "What is the maximum accelerate for all the different cylinders?",
    "query": "SELECT max(Accelerate) ,  Cylinders FROM CARS_DATA GROUP BY Cylinders;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which model has the most version(make) of cars?",
    "SpiderSynQuestion": "Which model has the most version(make) of automobiles?",
    "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What model has the most different versions?",
    "SpiderSynQuestion": "What model has the most different versions?",
    "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many cars have more than 4 cylinders?",
    "SpiderSynQuestion": "How many vehicles have more than 4 cylinders?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders  >  4;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of cars with more than 4 cylinders?",
    "SpiderSynQuestion": "What is the number of vehicles with more than 4 cylinders?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders  >  4;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "how many cars were produced in 1980?",
    "SpiderSynQuestion": "how many automobiles were produced in 1980?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR  =  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "In 1980, how many cars were made?",
    "SpiderSynQuestion": "In 1980, how many automobiles were made?",
    "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR  =  1980;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many car models were produced by the maker with full name American Motor Company?",
    "SpiderSynQuestion": "How many automobile models were produced by the manufacturer with full name American Motor Company?",
    "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of car models created by the car maker American Motor Company?",
    "SpiderSynQuestion": "What is the number of automobile models created by the car manufacturer American Motor Company?",
    "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which makers designed more than 3 car models? List full name and the id.",
    "SpiderSynQuestion": "Which manufacturers designed more than 3 vehicle models? List full name and the id.",
    "query": "SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the names and ids of all makers with more than 3 models?",
    "SpiderSynQuestion": "What are the names and ids of all manufacturers with more than 3 models?",
    "query": "SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?",
    "SpiderSynQuestion": "Which distinctive types are produced by manufacturer with the full name General Motors or weighing more than 3500?",
    "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the different models created by either the car maker General Motors or weighed more than 3500?",
    "SpiderSynQuestion": "What are the different models created by either the car manufacturer General Motors or weighed more than 3500?",
    "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "In which years cars were produced weighing no less than 3000 and no more than 4000?",
    "SpiderSynQuestion": "In which years automobiles were produced weighing no less than 3000 and no more than 4000?",
    "query": "SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight  >  3000 AND T1.weight  <  4000;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000?",
    "SpiderSynQuestion": "What are the different years in which there were vehicles produced that weighed less than 4000 and also vehicles that weighted more than 3000?",
    "query": "SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight  >  3000 AND T1.weight  <  4000;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the horsepower of the car with the largest accelerate?",
    "SpiderSynQuestion": "What is the power of the automobile with the largest accelerate?",
    "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the horsepower of the car with the greatest accelerate?",
    "SpiderSynQuestion": "What is the power of the automobile with the greatest accelerate?",
    "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "For model volvo, how many cylinders does the car with the least accelerate have?",
    "SpiderSynQuestion": "For model volvo, how many cylinders does the automobile with the least accelerate have?",
    "query": "SELECT count(cylinders) FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Model  =  'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "For a volvo model, how many cylinders does the version with least accelerate have?",
    "SpiderSynQuestion": "For a volvo model, how many cylinders does the version with least accelerate have?",
    "query": "SELECT count(cylinders) FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Model  =  'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many cars have a larger accelerate than the car with the largest horsepower?",
    "SpiderSynQuestion": "How many automobiles have a larger accelerate than the automobile with the largest power?",
    "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of cars with a greater accelerate than the one with the most horsepower?",
    "SpiderSynQuestion": "What is the number of automobiles with a greater accelerate than the one with the most power?",
    "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many countries has more than 2 car makers?",
    "SpiderSynQuestion": "How many States has more than 2 car manufacturers?",
    "query": "SELECT COUNT(*) FROM ( SELECT T1.CountryId ,  COUNT(*) FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >  2 );"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of countries with more than 2 car makers?",
    "SpiderSynQuestion": "What is the number of States with more than 2 car manufacturers?",
    "query": "SELECT COUNT(*) FROM ( SELECT T1.CountryId ,  COUNT(*) FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >  2 );"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "How many cars has over 6 cylinders?",
    "SpiderSynQuestion": "How many automobiles has over 6 cylinders?",
    "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders  >  6;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the number of cars with over 6 cylinders?",
    "SpiderSynQuestion": "What is the number of automobiles with over 6 cylinders?",
    "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders  >  6;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "For the cars with 4 cylinders, which model has the largest horsepower?",
    "SpiderSynQuestion": "For the automobiles with 4 cylinders, which model has the largest power?",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "For all of the 4 cylinder cars, which model has the most horsepower?",
    "SpiderSynQuestion": "For all of the 4 cylinder automobiles, which model has the most power?",
    "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.",
    "SpiderSynQuestion": "Among the automobiles with more than lowest power, which ones do not have more than 3 cylinders? List the vehicle makeid and manufacturer name.",
    "query": "SELECT T2.MakeId ,  T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Horsepower  >  (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders  <=  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Among the cars that do not have the minimum horsepower, what are the make ids and names of al those with less than 4 cylinders?",
    "SpiderSynQuestion": "Among the automobiles that do not have the minimum power, what are the manufacturer ids and names of al those with less than 4 cylinders?",
    "query": "SELECT T2.MakeId ,  T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Horsepower  >  (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders  <  4;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980?",
    "SpiderSynQuestion": "What is the maximum miles per gallon of the automobile with 8 cylinders or produced before 1980?",
    "query": "SELECT mpg FROM CARS_DATA WHERE Cylinders  =  8 OR YEAR  <  1980 ORDER BY mpg DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980?",
    "SpiderSynQuestion": "What is the maximum mpg of the automobiles that had 8 cylinders or that were produced before 1980?",
    "query": "SELECT mpg FROM CARS_DATA WHERE Cylinders  =  8 OR YEAR  <  1980 ORDER BY mpg DESC LIMIT 1;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?",
    "SpiderSynQuestion": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?",
    "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T3.weight  <  3500 AND T4.FullName != 'Ford Motor Company';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?",
    "SpiderSynQuestion": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?",
    "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T3.weight  <  3500 AND T4.FullName != 'Ford Motor Company';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the name of the countries where there is not a single car maker?",
    "SpiderSynQuestion": "What are the name of the States where there is not a single automobile maker?",
    "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId  =  T2.Country;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the names of the countries with no car makers?",
    "SpiderSynQuestion": "What are the names of the States with no vehicle manufacturers?",
    "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId  =  T2.Country;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "Which are the car makers which produce at least 2 models and more than 3 car makes? List the id and the maker.",
    "SpiderSynQuestion": "Which are the automobile manufacturers which produce at least 2 models and more than 3 automobile manufacturers? List the id and the manufacturer.",
    "query": "SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >=  2 INTERSECT SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model GROUP BY T1.Id HAVING count(*)  >  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?",
    "SpiderSynQuestion": "What are the ids and manufacturers of all automobile manufacturers that produce at least 2 models and make more than 3 automobiles?",
    "query": "SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >=  2 INTERSECT SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model GROUP BY T1.Id HAVING count(*)  >  3;"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?",
    "SpiderSynQuestion": "What are the id and names of the nations which have more than 3 vehicle manufacturers or produce the 'fiat' model?",
    "query": "SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.countryId HAVING count(*)  >  3 UNION SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T3.Model  =  'fiat';"
  },
  {
    "db_id": "car_1",
    "SpiderQuestion": "What are the ids and names of all countries that either have more than 3 car makers or produce fiats?",
    "SpiderSynQuestion": "What are the ids and names of all States that either have more than 3 automobile manufacturers or produce fiats?",
    "query": "SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.countryId HAVING count(*)  >  3 UNION SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T3.Model  =  'fiat';"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which country does Airline \"JetBlue Airways\" belong to?",
    "SpiderSynQuestion": "Which State does Airways \"JetBlue Airways\" belong to?",
    "query": "SELECT Country FROM AIRLINES WHERE Airline  =  \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What country is Jetblue Airways affiliated with?",
    "SpiderSynQuestion": "What State is Jetblue Airways affiliated with?",
    "query": "SELECT Country FROM AIRLINES WHERE Airline  =  \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the abbreviation of Airline \"JetBlue Airways\"?",
    "SpiderSynQuestion": "What is the shortened word of Airline \"JetBlue Airways\"?",
    "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline  =  \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which abbreviation corresponds to Jetblue Airways?",
    "SpiderSynQuestion": "Which shortened word corresponds to Jetblue Airways?",
    "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline  =  \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "List all airline names and their abbreviations in \"USA\".",
    "SpiderSynQuestion": "List all airway names and their shortened word in \"USA\".",
    "query": "SELECT Airline ,  Abbreviation FROM AIRLINES WHERE Country  =  \"USA\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are the airline names and abbreviations for airlines in the USA?",
    "SpiderSynQuestion": "What are the airway names and shortened words for airways in the USA?",
    "query": "SELECT Airline ,  Abbreviation FROM AIRLINES WHERE Country  =  \"USA\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "List the airport code and name in the city of Anthony.",
    "SpiderSynQuestion": "List the airport code and name in the city of Anthony.",
    "query": "SELECT AirportCode ,  AirportName FROM AIRPORTS WHERE city  =  \"Anthony\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the airport code and airport name corresonding to the city Anthony.",
    "SpiderSynQuestion": "Give the airport code and airport name corresonding to the city Anthony.",
    "query": "SELECT AirportCode ,  AirportName FROM AIRPORTS WHERE city  =  \"Anthony\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many airlines do we have?",
    "SpiderSynQuestion": "How many airways do we have?",
    "query": "SELECT count(*) FROM AIRLINES"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the total number of airlines?",
    "SpiderSynQuestion": "What is the total amount of airways?",
    "query": "SELECT count(*) FROM AIRLINES"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many airports do we have?",
    "SpiderSynQuestion": "How many aerodromes do we have?",
    "query": "SELECT count(*) FROM AIRPORTS"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of  airports.",
    "SpiderSynQuestion": "Return the number of  aerodromes.",
    "query": "SELECT count(*) FROM AIRPORTS"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights do we have?",
    "SpiderSynQuestion": "How many flights do we have?",
    "query": "SELECT count(*) FROM FLIGHTS"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of flights.",
    "SpiderSynQuestion": "Return the number of flights.",
    "query": "SELECT count(*) FROM FLIGHTS"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airline has abbreviation 'UAL'?",
    "SpiderSynQuestion": "Which airway can be shortened as word 'UAL'?",
    "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation  =  \"UAL\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the airline with abbreviation 'UAL'.",
    "SpiderSynQuestion": "Give the airway with abbreviation 'UAL'.",
    "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation  =  \"UAL\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many airlines are from USA?",
    "SpiderSynQuestion": "How many airways are from USA?",
    "query": "SELECT count(*) FROM AIRLINES WHERE Country  =  \"USA\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of airlines in the USA.",
    "SpiderSynQuestion": "Return the number of airways in the USA.",
    "query": "SELECT count(*) FROM AIRLINES WHERE Country  =  \"USA\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which city and country is the Alton airport at?",
    "SpiderSynQuestion": "Which town and State is the Alton airport at?",
    "query": "SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  \"Alton\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the city and country for the Alton airport.",
    "SpiderSynQuestion": "Give the town and State for the Alton airport.",
    "query": "SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  \"Alton\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the airport name for airport 'AKO'?",
    "SpiderSynQuestion": "What is the aerodrome name for airport 'AKO'?",
    "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  \"AKO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the name of the airport with code 'AKO'.",
    "SpiderSynQuestion": "Return the name of the aerodrome with code 'AKO'.",
    "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  \"AKO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are airport names at City 'Aberdeen'?",
    "SpiderSynQuestion": "What are aerodrome names at town 'Aberdeen'?",
    "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are the names of airports in Aberdeen?",
    "SpiderSynQuestion": "What are the names of aerodrome in Aberdeen?",
    "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights depart from 'APG'?",
    "SpiderSynQuestion": "How many flights depart from 'APG'?",
    "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Count the number of flights departing from 'APG'.",
    "SpiderSynQuestion": "Count the amount of flights departing from 'APG'.",
    "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights have destination ATO?",
    "SpiderSynQuestion": "How many flights have terminal ATO?",
    "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  \"ATO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Count the number of flights into ATO.",
    "SpiderSynQuestion": "Count the number of flights into ATO.",
    "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  \"ATO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights depart from City Aberdeen?",
    "SpiderSynQuestion": "How many flights depart from City Aberdeen?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of flights departing from Aberdeen.",
    "SpiderSynQuestion": "Return the number of flights departing from Aberdeen.",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights arriving in Aberdeen city?",
    "SpiderSynQuestion": "How many flights arriving in Aberdeen city?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of flights arriving in Aberdeen.",
    "SpiderSynQuestion": "Return the number of flights arriving in Aberdeen.",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?",
    "SpiderSynQuestion": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  \"Ashley\" AND T3.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights fly from Aberdeen to Ashley?",
    "SpiderSynQuestion": "How many flights fly from Aberdeen to Ashley?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  \"Ashley\" AND T3.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights does airline 'JetBlue Airways' have?",
    "SpiderSynQuestion": "How many flights does airway 'JetBlue Airways' have?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the number of Jetblue Airways flights.",
    "SpiderSynQuestion": "Give the number of Jetblue Airways flights.",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = \"JetBlue Airways\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many 'United Airlines' flights go to Airport 'ASY'?",
    "SpiderSynQuestion": "How many 'United Airlines' flights go to Airport 'ASY'?",
    "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  \"United Airlines\" AND T2.DestAirport  =  \"ASY\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Count the number of United Airlines flights arriving in ASY Airport.",
    "SpiderSynQuestion": "Count the number of United Airlines flights arriving in ASY Airport.",
    "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  \"United Airlines\" AND T2.DestAirport  =  \"ASY\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many 'United Airlines' flights depart from Airport 'AHD'?",
    "SpiderSynQuestion": "How many 'United Airlines' flights leave from Airport 'AHD'?",
    "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  \"United Airlines\" AND T2.SourceAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Return the number of United Airlines flights leaving from AHD Airport.",
    "SpiderSynQuestion": "Return the number of United Airlines flights leaving from AHD Airport.",
    "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  \"United Airlines\" AND T2.SourceAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many United Airlines flights go to City 'Aberdeen'?",
    "SpiderSynQuestion": "How many United Airlines flights go to City 'Aberdeen'?",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  \"Aberdeen\" AND T3.Airline  =  \"United Airlines\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Count the number of United Airlines flights that arrive in Aberdeen.",
    "SpiderSynQuestion": "Count the number of United Airlines flights that arrive in Aberdeen.",
    "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  \"Aberdeen\" AND T3.Airline  =  \"United Airlines\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which city has most number of arriving flights?",
    "SpiderSynQuestion": "Which town has most number of arriving flights?",
    "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which city has the most frequent destination airport?",
    "SpiderSynQuestion": "Which town has the most frequent terminal aerodrome?",
    "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which city has most number of departing flights?",
    "SpiderSynQuestion": "Which town has most number of departing flights?",
    "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which city is the most frequent source airport?",
    "SpiderSynQuestion": "Which town is the most frequent source aerodrome?",
    "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the code of airport that has the highest number of flights?",
    "SpiderSynQuestion": "What is the code of aerodrome that has the highest number of flights?",
    "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the airport code of the airport with the most flights?",
    "SpiderSynQuestion": "What is the aerodrome code of the aerodrome with the most flights?",
    "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the code of airport that has fewest number of flights?",
    "SpiderSynQuestion": "What is the code of aerodrome that has fewest number of flights?",
    "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the code of the airport with the least flights.",
    "SpiderSynQuestion": "Give the code of the aerodrome with the least flights.",
    "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airline has most number of flights?",
    "SpiderSynQuestion": "Which airway has most number of flights?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What airline serves the most flights?",
    "SpiderSynQuestion": "What airway serves the most flights?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find the abbreviation and country of the airline that has fewest number of flights?",
    "SpiderSynQuestion": "Find the shortened word and State of the airway that has fewest number of flights?",
    "query": "SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What is the abbreviation of the airilne has the fewest flights and what country is it in?",
    "SpiderSynQuestion": "What is the shortened word of the airway has the fewest flights and what State is it in?",
    "query": "SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are airlines that have some flight departing from airport 'AHD'?",
    "SpiderSynQuestion": "What are airways that have some flight departing from aerodrome 'AHD'?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have a flight with source airport AHD?",
    "SpiderSynQuestion": "Which airways have a flight with source airport AHD?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are airlines that have flights arriving at airport 'AHD'?",
    "SpiderSynQuestion": "What are airways that have flights arriving at airport 'AHD'?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have a flight with destination airport AHD?",
    "SpiderSynQuestion": "Which airways have a flight with terminal airport AHD?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  \"AHD\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find all airlines that have flights from both airports 'APG' and 'CVO'.",
    "SpiderSynQuestion": "Find all airways that have flights from both aerodromes 'APG' and 'CVO'.",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"CVO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have departing flights from both APG and CVO airports?",
    "SpiderSynQuestion": "Which airways have departing flights from both APG and CVO aerodromes?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"CVO\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.",
    "SpiderSynQuestion": "Find all airways that have flights from airport 'CVO' but not from 'APG'.",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have departures from CVO but not from APG airports?",
    "SpiderSynQuestion": "Which airways have departures from CVO but not from APG airports?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find all airlines that have at least 10 flights.",
    "SpiderSynQuestion": "Find all airways that have at least 10 flights.",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have at least 10 flights?",
    "SpiderSynQuestion": "Which airways have at least 10 flights?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find all airlines that have fewer than 200 flights.",
    "SpiderSynQuestion": "Find all airways that have fewer than 200 flights.",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airlines have less than 200 flights?",
    "SpiderSynQuestion": "Which airways have less than 200 flights?",
    "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are flight numbers of Airline \"United Airlines\"?",
    "SpiderSynQuestion": "What are flight codes of airway \"United Airlines\"?",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  \"United Airlines\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which flight numbers correspond to United Airlines flights?",
    "SpiderSynQuestion": "Which flight codes correspond to United Airlines flights?",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  \"United Airlines\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are flight numbers of flights departing from Airport \"APG\"?",
    "SpiderSynQuestion": "What are flight codes of flights departing from Airport \"APG\"?",
    "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the flight numbers of flights leaving from APG.",
    "SpiderSynQuestion": "Give the flight codes of flights leaving from APG.",
    "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are flight numbers of flights arriving at Airport \"APG\"?",
    "SpiderSynQuestion": "What are flight codes of flights arriving at Airport \"APG\"?",
    "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the flight numbers of flights landing at APG.",
    "SpiderSynQuestion": "Give the flight codes of flights landing at APG.",
    "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  \"APG\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are flight numbers of flights departing from City \"Aberdeen \"?",
    "SpiderSynQuestion": "What are flight codes of flights departing from City \"Aberdeen \"?",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the flight numbers of flights leaving from Aberdeen.",
    "SpiderSynQuestion": "Give the flight codes of flights leaving from Aberdeen.",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "What are flight numbers of flights arriving at City \"Aberdeen\"?",
    "SpiderSynQuestion": "What are flight codes of flights arriving in City \"Aberdeen\"?",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Give the flight numbers of flights arriving in Aberdeen.",
    "SpiderSynQuestion": "Give the flight codes of flights arriving in Aberdeen.",
    "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  \"Aberdeen\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find the number of flights landing in the city of Aberdeen or Abilene.",
    "SpiderSynQuestion": "Find the code of flights landing in the city of Aberdeen or Abilene.",
    "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  \"Aberdeen\" OR T2.city  =  \"Abilene\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "How many flights land in Aberdeen or Abilene?",
    "SpiderSynQuestion": "How many flights land in Aberdeen or Abilene?",
    "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  \"Aberdeen\" OR T2.city  =  \"Abilene\""
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Find the name of airports which do not have any flight in and out.",
    "SpiderSynQuestion": "Find the name of aerodromes which do not have any flight in and out.",
    "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"
  },
  {
    "db_id": "flight_2",
    "SpiderQuestion": "Which airports do not have departing or arriving flights?",
    "SpiderSynQuestion": "Which aerodromes do not have leaving or arriving flights?",
    "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "How many employees are there?",
    "SpiderSynQuestion": "How many workers are there?",
    "query": "SELECT count(*) FROM employee"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Count the number of employees",
    "SpiderSynQuestion": "Count the number of staffs",
    "query": "SELECT count(*) FROM employee"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Sort employee names by their age in ascending order.",
    "SpiderSynQuestion": "Sort worker names by their age in ascending order.",
    "query": "SELECT name FROM employee ORDER BY age"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "List the names of employees and sort in ascending order of age.",
    "SpiderSynQuestion": "List the names of workers and sort in ascending order of age.",
    "query": "SELECT name FROM employee ORDER BY age"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What is the number of employees from each city?",
    "SpiderSynQuestion": "What is the number of workers from each town?",
    "query": "SELECT count(*) ,  city FROM employee GROUP BY city"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Count the number of employees for each city.",
    "SpiderSynQuestion": "Count the number of staffs for each town.",
    "query": "SELECT count(*) ,  city FROM employee GROUP BY city"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which cities do more than one employee under age 30 come from?",
    "SpiderSynQuestion": "Which towns do more than one staff under age 30 come from?",
    "query": "SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the cities that have more than one employee under age 30.",
    "SpiderSynQuestion": "Find the towns that have more than one worker under age 30.",
    "query": "SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the number of shops in each location.",
    "SpiderSynQuestion": "Find the number of shops in each city.",
    "query": "SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "How many shops are there in each location?",
    "SpiderSynQuestion": "How many stores are there in each city?",
    "query": "SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the manager name and district of the shop whose number of products is the largest.",
    "SpiderSynQuestion": "Find the head name and district of the shop whose number of commodities is the largest.",
    "query": "SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What are the manager name and district of the shop that sells the largest number of products?",
    "SpiderSynQuestion": "What are the director name and district of the market that sells the largest number of goods?",
    "query": "SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "find the minimum and maximum number of products of all stores.",
    "SpiderSynQuestion": "find the minimum and maximum number of merchandises of all stores.",
    "query": "SELECT min(Number_products) ,  max(Number_products) FROM shop"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What are the minimum and maximum number of products across all the shops?",
    "SpiderSynQuestion": "What are the minimum and maximum number of goods across all the stores?",
    "query": "SELECT min(Number_products) ,  max(Number_products) FROM shop"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Return the name, location and district of all shops in descending order of number of products.",
    "SpiderSynQuestion": "Return the name, city and district of all markets in descending order of number of commodities.",
    "query": "SELECT name ,  LOCATION ,  district FROM shop ORDER BY number_products DESC"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.",
    "SpiderSynQuestion": "Sort all the stores by number merchandises in descending order, and return the name, city and district of each store.",
    "query": "SELECT name ,  LOCATION ,  district FROM shop ORDER BY number_products DESC"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the names of stores whose number products is more than the average number of products.",
    "SpiderSynQuestion": "Find the names of stores whose number merchandises is more than the average number of merchandises.",
    "query": "SELECT name FROM shop WHERE number_products  >  (SELECT avg(number_products) FROM shop)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which shops' number products is above the average? Give me the shop names.",
    "SpiderSynQuestion": "Which shops' number goods is above the average? Give me the store names.",
    "query": "SELECT name FROM shop WHERE number_products  >  (SELECT avg(number_products) FROM shop)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "find the name of employee who was awarded the most times in the evaluation.",
    "SpiderSynQuestion": "find the name of staff who was awarded the most times in the assessment.",
    "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which employee received the most awards in evaluations? Give me the employee name.",
    "SpiderSynQuestion": "Which worker received the most awards in assessments? Give me the worker name.",
    "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the name of the employee who got the highest one time bonus.",
    "SpiderSynQuestion": "Find the name of the worker who got the highest one time premium.",
    "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which employee received the biggest bonus? Give me the employee name.",
    "SpiderSynQuestion": "Which worker received the biggest extra prize? Give me the worker name.",
    "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the names of employees who never won any award in the evaluation.",
    "SpiderSynQuestion": "Find the names of staffs who never won any award in the assessment.",
    "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What are the names of the employees who never received any evaluation?",
    "SpiderSynQuestion": "What are the names of the staffs who never received any assessment?",
    "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What is the name of the shop that is hiring the largest number of employees?",
    "SpiderSynQuestion": "What is the name of the store that is hiring the largest number of workers?",
    "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which shop has the most employees? Give me the shop name.",
    "SpiderSynQuestion": "Which shop has the most workers? Give me the store name.",
    "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the name of the shops that do not hire any employee.",
    "SpiderSynQuestion": "Find the name of the stores that do not hire any people.",
    "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which shops run with no employees? Find the shop names",
    "SpiderSynQuestion": "Which stores run with no workers? Find the store names",
    "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the number of employees hired in each shop; show the shop name as well.",
    "SpiderSynQuestion": "Find the number of staffs hired in each store; show the store name as well.",
    "query": "SELECT count(*) ,  t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t2.name"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "For each shop, return the number of employees working there and the name of the shop.",
    "SpiderSynQuestion": "For each store, return the number of people working there and the name of the store.",
    "query": "SELECT count(*) ,  t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t2.name"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What is total bonus given in all evaluations?",
    "SpiderSynQuestion": "What is total premium given in all assessments?",
    "query": "SELECT sum(bonus) FROM evaluation"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the total amount of bonus given in all the evaluations.",
    "SpiderSynQuestion": "Find the total amount of extra prize given in all the assessments.",
    "query": "SELECT sum(bonus) FROM evaluation"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Give me all the information about hiring.",
    "SpiderSynQuestion": "Give me all the information about hiring.",
    "query": "SELECT * FROM hiring"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "What is all the information about hiring?",
    "SpiderSynQuestion": "What is all the information about hiring?",
    "query": "SELECT * FROM hiring"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Which district has both stores with less than 3000 products and stores with more than 10000 products?",
    "SpiderSynQuestion": "Which district has both stores with less than 3000 goods and stores with more than 10000 goods?",
    "query": "SELECT district FROM shop WHERE Number_products  <  3000 INTERSECT SELECT district FROM shop WHERE Number_products  >  10000"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.",
    "SpiderSynQuestion": "Find the districts in which there are both shops selling less than 3000 goods and markets selling more than 10000 goods.",
    "query": "SELECT district FROM shop WHERE Number_products  <  3000 INTERSECT SELECT district FROM shop WHERE Number_products  >  10000"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "How many different store locations are there?",
    "SpiderSynQuestion": "How many different store city are there?",
    "query": "SELECT count(DISTINCT LOCATION) FROM shop"
  },
  {
    "db_id": "employee_hire_evaluation",
    "SpiderQuestion": "Count the number of distinct store locations.",
    "SpiderSynQuestion": "Count the number of distinct store city.",
    "query": "SELECT count(DISTINCT LOCATION) FROM shop"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many documents do we have?",
    "SpiderSynQuestion": "How many papers do we have?",
    "query": "SELECT count(*) FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of documents.",
    "SpiderSynQuestion": "Count the number of papers.",
    "query": "SELECT count(*) FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "List document IDs, document names, and document descriptions for all documents.",
    "SpiderSynQuestion": "List paper IDs, paper names, and paper descriptions for all papers.",
    "query": "SELECT document_id ,  document_name ,  document_description FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids, names, and descriptions for all documents?",
    "SpiderSynQuestion": "What are the ids, names, and descriptions for all papers?",
    "query": "SELECT document_id ,  document_name ,  document_description FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the document name and template id for document with description with the letter 'w' in it?",
    "SpiderSynQuestion": "What is the document name and layout id for document with description with the letter 'w' in it?",
    "query": "SELECT document_name ,  template_id FROM Documents WHERE Document_Description LIKE \"%w%\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the names and template ids for documents that contain the letter w in their description.",
    "SpiderSynQuestion": "Return the names and layout ids for papers that contain the letter w in their describing content.",
    "query": "SELECT document_name ,  template_id FROM Documents WHERE Document_Description LIKE \"%w%\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the document id, template id and description for document named \"Robbin CV\"?",
    "SpiderSynQuestion": "What is the paper id, layout id and describing content for paper named \"Robbin CV\"?",
    "query": "SELECT document_id ,  template_id ,  Document_Description FROM Documents WHERE document_name  =  \"Robbin CV\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the document id, template id, and description for the document with the name Robbin CV.",
    "SpiderSynQuestion": "Return the paper id, layout id, and describing details for the paper with the name Robbin CV.",
    "query": "SELECT document_id ,  template_id ,  Document_Description FROM Documents WHERE document_name  =  \"Robbin CV\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many different templates do all document use?",
    "SpiderSynQuestion": "How many different layout do all document use?",
    "query": "SELECT count(DISTINCT template_id) FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of different templates used for documents.",
    "SpiderSynQuestion": "Count the number of different layout used for text files.",
    "query": "SELECT count(DISTINCT template_id) FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many documents are using the template with type code 'PPT'?",
    "SpiderSynQuestion": "How many text files are using the layout with type code 'PPT'?",
    "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID  =  T2.Template_ID WHERE T2.Template_Type_Code  =  'PPT'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of documents that use the PPT template type.",
    "SpiderSynQuestion": "Count the number of text files that use the PPT template type.",
    "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID  =  T2.Template_ID WHERE T2.Template_Type_Code  =  'PPT'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template ids and number of documents using each template.",
    "SpiderSynQuestion": "Show all layout ids and number of text files using each layout.",
    "query": "SELECT template_id ,  count(*) FROM Documents GROUP BY template_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are all different template ids used for documents, and how many times were each of them used?",
    "SpiderSynQuestion": "What are all different layout ids used for papers, and how many times were each of them used?",
    "query": "SELECT template_id ,  count(*) FROM Documents GROUP BY template_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the id and type code for the template used by the most documents?",
    "SpiderSynQuestion": "What is the id and type for the layout used by the most papers?",
    "query": "SELECT T1.template_id ,  T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the id and type code of the template that is used for the greatest number of documents.",
    "SpiderSynQuestion": "Return the id and type of the layout that is used for the greatest number of papers.",
    "query": "SELECT T1.template_id ,  T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show ids for all templates that are used by more than one document.",
    "SpiderSynQuestion": "Show ids for all layouts that are used by more than one text file.",
    "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*)  >  1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the template ids of any templates used in more than a single document?",
    "SpiderSynQuestion": "What are the template ids of any templates used in more than a single paper?",
    "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*)  >  1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show ids for all templates not used by any document.",
    "SpiderSynQuestion": "Show ids for all templates not used by any text file.",
    "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids for templates that are not used in any documents?",
    "SpiderSynQuestion": "What are the ids for layout that are not used in any papers?",
    "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many templates do we have?",
    "SpiderSynQuestion": "How many layout do we have?",
    "query": "SELECT count(*) FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of templates.",
    "SpiderSynQuestion": "Count the number of layout.",
    "query": "SELECT count(*) FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show template ids, version numbers, and template type codes for all templates.",
    "SpiderSynQuestion": "Show layout ids, version numbers, and layout type for all layout.",
    "query": "SELECT template_id ,  version_number ,  template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids, version numbers, and type codes for each template?",
    "SpiderSynQuestion": "What are the ids, edition numbers, and type name for each layout?",
    "query": "SELECT template_id ,  version_number ,  template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all distinct template type codes for all templates.",
    "SpiderSynQuestion": "Show all distinct layout type names for all layout.",
    "query": "SELECT DISTINCT template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the different template type codes?",
    "SpiderSynQuestion": "What are the different layout type names?",
    "query": "SELECT DISTINCT template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids of templates with template type code PP or PPT?",
    "SpiderSynQuestion": "What are the ids of layout with layout type code PP or PPT?",
    "query": "SELECT template_id FROM Templates WHERE template_type_code  =  \"PP\" OR template_type_code  =  \"PPT\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the ids of templates that have the code PP or PPT.",
    "SpiderSynQuestion": "Return the ids of layout that have the code PP or PPT.",
    "query": "SELECT template_id FROM Templates WHERE template_type_code  =  \"PP\" OR template_type_code  =  \"PPT\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many templates have template type code CV?",
    "SpiderSynQuestion": "How many layout have template type code CV?",
    "query": "SELECT count(*) FROM Templates WHERE template_type_code  =  \"CV\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of templates of the type CV.",
    "SpiderSynQuestion": "Count the number of layout of the type CV.",
    "query": "SELECT count(*) FROM Templates WHERE template_type_code  =  \"CV\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the version number and template type code for the template with version number later than 5?",
    "SpiderSynQuestion": "What is the edition number and layout type for the layout with edition number later than 5?",
    "query": "SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the version numbers and template type codes of templates with a version number greater than 5.",
    "SpiderSynQuestion": "Return the edition numbers and layout type names of layout with a edition number greater than 5.",
    "query": "SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template type codes and number of templates for each.",
    "SpiderSynQuestion": "Show all layout type codes and number of layout for each.",
    "query": "SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the different template type codes, and how many templates correspond to each?",
    "SpiderSynQuestion": "What are the different layout type, and how many layout correspond to each?",
    "query": "SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Which template type code has most number of templates?",
    "SpiderSynQuestion": "Which layout type code has most number of layout?",
    "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the type code of the template type that the most templates belong to.",
    "SpiderSynQuestion": "Return the type name of the layout type that the most layout belong to.",
    "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template type codes with less than three templates.",
    "SpiderSynQuestion": "Show all layout types with less than three layouts.",
    "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the codes of template types that have fewer than 3 templates?",
    "SpiderSynQuestion": "What are the names of layout types that have fewer than 3 layouts?",
    "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What the smallest version number and its template type code?",
    "SpiderSynQuestion": "What the smallest edition number and its layout type code?",
    "query": "SELECT min(Version_Number) ,  template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the lowest version number, along with its corresponding template type code.",
    "SpiderSynQuestion": "Return the lowest edition number, along with its corresponding layout type code.",
    "query": "SELECT min(Version_Number) ,  template_type_code FROM Templates"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the template type code of the template used by document with the name \"Data base\"?",
    "SpiderSynQuestion": "What is the layout type code of the layout used by layout with the name \"Data base\"?",
    "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  \"Data base\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the template type code of the template that is used by a document named Data base.",
    "SpiderSynQuestion": "Return the layout type code of the layout that is used by a text file named Data base.",
    "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  \"Data base\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all document names using templates with template type code BK.",
    "SpiderSynQuestion": "Show all text file names using layout with layout type code BK.",
    "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  \"BK\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the names of documents that use templates with the code BK?",
    "SpiderSynQuestion": "What are the names of papers that use layouts with the code BK?",
    "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  \"BK\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template type codes and the number of documents using each type.",
    "SpiderSynQuestion": "Show all layout type names and the number of papers using each type.",
    "query": "SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the different template type codes, and how many documents use each type?",
    "SpiderSynQuestion": "What are the different layout types, and how many papers use each type?",
    "query": "SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Which template type code is used by most number of documents?",
    "SpiderSynQuestion": "Which layout type is used by most number of text files?",
    "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the code of the template type that is most commonly used in documents.",
    "SpiderSynQuestion": "Return the code of the layout type that is most commonly used in text files.",
    "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template type codes that are not used by any document.",
    "SpiderSynQuestion": "Show all layout types that are not used by any text file.",
    "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the codes of template types that are not used for any document?",
    "SpiderSynQuestion": "What are the names of layout types that are not used for any text file?",
    "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all template type codes and descriptions.",
    "SpiderSynQuestion": "Show all layout type names and describing details.",
    "query": "SELECT template_type_code ,  template_type_description FROM Ref_template_types"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the type codes and descriptions for all template types?",
    "SpiderSynQuestion": "What are the type names and describing details for all layout types?",
    "query": "SELECT template_type_code ,  template_type_description FROM Ref_template_types"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the template type descriptions for template type code \"AD\".",
    "SpiderSynQuestion": "What is the layout type describing content for layout type code \"AD\".",
    "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  \"AD\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the template type description of the template type with the code AD.",
    "SpiderSynQuestion": "Return the layout type describing content of the layout type with the code AD.",
    "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  \"AD\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the template type code for template type description \"Book\".",
    "SpiderSynQuestion": "What is the layout type name for layout type description \"Book\".",
    "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  \"Book\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the type code of the template type with the description \"Book\".",
    "SpiderSynQuestion": "Return the type of the layout type with the description \"Book\".",
    "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  \"Book\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the distinct template type descriptions for the templates ever used by any document?",
    "SpiderSynQuestion": "What are the distinct layout type descriptions for the layouts ever used by any text file?",
    "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the different descriptions for templates that have been used in a document.",
    "SpiderSynQuestion": "Return the different describing content for layouts that have been used in a text file.",
    "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the template ids with template type description \"Presentation\".",
    "SpiderSynQuestion": "What are the layout ids with layout type describing content \"Presentation\".",
    "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  \"Presentation\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the ids corresponding to templates with the description 'Presentation'.",
    "SpiderSynQuestion": "Return the ids corresponding to layouts with the describing content 'Presentation'.",
    "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  \"Presentation\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many paragraphs in total?",
    "SpiderSynQuestion": "How many paragraphs in total?",
    "query": "SELECT count(*) FROM Paragraphs"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of paragraphs.",
    "SpiderSynQuestion": "Count the number of paragraphs.",
    "query": "SELECT count(*) FROM Paragraphs"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "How many paragraphs for the document with name 'Summer Show'?",
    "SpiderSynQuestion": "How many paragraphs for the text file with name 'Summer Show'?",
    "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Count the number of paragraphs in the document named 'Summer Show'.",
    "SpiderSynQuestion": "Count the number of paragraphs in the text file named 'Summer Show'.",
    "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show paragraph details for paragraph with text 'Korea'.",
    "SpiderSynQuestion": "Show paragraph details for paragraph with text 'Korea'.",
    "query": "SELECT Other_Details FROM Paragraphs WHERE paragraph_text  =  'Korea'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the details for the paragraph that includes the text 'Korea'?",
    "SpiderSynQuestion": "What are the details for the paragraph that includes the text 'Korea'?",
    "query": "SELECT Other_Details FROM Paragraphs WHERE paragraph_text  =  'Korea'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.",
    "SpiderSynQuestion": "Show all paragraph ids and content for the text file with name 'Welcome to NY'.",
    "query": "SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?",
    "SpiderSynQuestion": "What are the ids and content of paragraphs in the text file titled 'Welcome to NY'?",
    "query": "SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all paragraph texts for the document \"Customer reviews\".",
    "SpiderSynQuestion": "Show all paragraph content for the text file \"Customer reviews\".",
    "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  \"Customer reviews\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the paragraph texts for the document with the name 'Customer reviews'?",
    "SpiderSynQuestion": "What are the paragraph content for the text file with the name 'Customer reviews'?",
    "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  \"Customer reviews\""
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all document ids and the number of paragraphs in each document. Order by document id.",
    "SpiderSynQuestion": "Show all paper ids and the number of paragraphs in each text file. Order by paper id.",
    "query": "SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.",
    "SpiderSynQuestion": "Return the different paper ids along with the number of paragraphs corresponding to each, ordered by id.",
    "query": "SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show all document ids, names and the number of paragraphs in each document.",
    "SpiderSynQuestion": "Show all text file ids, names and the number of paragraphs in each paper.",
    "query": "SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids and names of each document, as well as the number of paragraphs in each?",
    "SpiderSynQuestion": "What are the ids and names of each paper, as well as the number of paragraphs in each?",
    "query": "SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "List all document ids with at least two paragraphs.",
    "SpiderSynQuestion": "List all name ids with at least two paragraphs.",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids of documents that have 2 or more paragraphs?",
    "SpiderSynQuestion": "What are the ids of text files that have 2 or more paragraphs?",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the document id and name with greatest number of paragraphs?",
    "SpiderSynQuestion": "What is the text file id and name with greatest number of paragraphs?",
    "query": "SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the id and name of the document with the most paragraphs.",
    "SpiderSynQuestion": "Return the id and name of the paper with the most paragraphs.",
    "query": "SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the document id with least number of paragraphs?",
    "SpiderSynQuestion": "What is the paper id with least number of paragraphs?",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Return the id of the document with the fewest paragraphs.",
    "SpiderSynQuestion": "Return the id of the paper with the fewest paragraphs.",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What is the document id with 1 to 2 paragraphs?",
    "SpiderSynQuestion": "What is the paper id with 1 to 2 paragraphs?",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Give the ids of documents that have between one and two paragraphs.",
    "SpiderSynQuestion": "Give the ids of text files that have between one and two paragraphs.",
    "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "Show the document id with paragraph text 'Brazil' and 'Ireland'.",
    "SpiderSynQuestion": "Show the paper id with paragraph text 'Brazil' and 'Ireland'.",
    "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland'"
  },
  {
    "db_id": "cre_Doc_Template_Mgt",
    "SpiderQuestion": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?",
    "SpiderSynQuestion": "What are the ids of text files that contain the paragraph text 'Brazil' and 'Ireland'?",
    "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland'"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "How many teachers are there?",
    "SpiderSynQuestion": "How many instructors are there?",
    "query": "SELECT count(*) FROM teacher"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What is the total count of teachers?",
    "SpiderSynQuestion": "What is the total count of faculties?",
    "query": "SELECT count(*) FROM teacher"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "List the names of teachers in ascending order of age.",
    "SpiderSynQuestion": "List the names of faculties in ascending order of age.",
    "query": "SELECT Name FROM teacher ORDER BY Age ASC"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers ordered by ascending age?",
    "SpiderSynQuestion": "What are the names of the faculties ordered by ascending age?",
    "query": "SELECT Name FROM teacher ORDER BY Age ASC"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the age and hometown of teachers?",
    "SpiderSynQuestion": "What are the age and birthplace of instructors?",
    "query": "SELECT Age ,  Hometown FROM teacher"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What is the age and hometown of every teacher?",
    "SpiderSynQuestion": "What is the age and birthplace of every instructor?",
    "query": "SELECT Age ,  Hometown FROM teacher"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "List the name of teachers whose hometown is not \"Little Lever Urban District\".",
    "SpiderSynQuestion": "List the name of faculties whose birthplace is not \"Little Lever Urban District\".",
    "query": "SELECT Name FROM teacher WHERE Hometown != \"Little Lever Urban District\""
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers whose hometown is not \"Little Lever Urban District\"?",
    "SpiderSynQuestion": "What are the names of the faculties whose birthplace is not \"Little Lever Urban District\"?",
    "query": "SELECT Name FROM teacher WHERE Hometown != \"Little Lever Urban District\""
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show the name of teachers aged either 32 or 33?",
    "SpiderSynQuestion": "Show the name of faculties aged either 32 or 33?",
    "query": "SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers who are aged either 32 or 33?",
    "SpiderSynQuestion": "What are the names of the instructors who are aged either 32 or 33?",
    "query": "SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What is the hometown of the youngest teacher?",
    "SpiderSynQuestion": "What is the birthplace of the youngest instructor?",
    "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Where is the youngest teacher from?",
    "SpiderSynQuestion": "Where is the youngest instructor from?",
    "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show different hometown of teachers and the number of teachers from each hometown.",
    "SpiderSynQuestion": "Show different birthplace of instructors and the number of instructors from each birthplace.",
    "query": "SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "For each hometown, how many teachers are there?",
    "SpiderSynQuestion": "For each birthplace, how many instructors are there?",
    "query": "SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "List the most common hometown of teachers.",
    "SpiderSynQuestion": "List the most common birthplace of instructors.",
    "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What is the most commmon hometowns for teachers?",
    "SpiderSynQuestion": "What is the most commmon birthplaces for faculties?",
    "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show the hometowns shared by at least two teachers.",
    "SpiderSynQuestion": "Show the birthplaces shared by at least two faculties.",
    "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the towns from which at least two teachers come from?",
    "SpiderSynQuestion": "What are the towns from which at least two instructors come from?",
    "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show names of teachers and the courses they are arranged to teach.",
    "SpiderSynQuestion": "Show names of instructors and the curriculums they are arranged to teach.",
    "query": "SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What is the name of each teacher and what course they teach?",
    "SpiderSynQuestion": "What is the name of each faculty and what curriculum they teach?",
    "query": "SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.",
    "SpiderSynQuestion": "Show names of faculties and the curriculums they are arranged to teach in ascending alphabetical order of the faculty's name.",
    "query": "SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID ORDER BY T3.Name"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?",
    "SpiderSynQuestion": "What are the names of the faculties and the curriculums they teach in ascending alphabetical order by the name of the faculty?",
    "query": "SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID ORDER BY T3.Name"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show the name of the teacher for the math course.",
    "SpiderSynQuestion": "Show the name of the faculty for the math curriculum.",
    "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID WHERE T2.Course  =  \"Math\""
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the people who teach math courses?",
    "SpiderSynQuestion": "What are the names of the people who teach math?",
    "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID WHERE T2.Course  =  \"Math\""
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show names of teachers and the number of courses they teach.",
    "SpiderSynQuestion": "Show names of faculties and the number of curriculums they teach.",
    "query": "SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers and how many courses do they teach?",
    "SpiderSynQuestion": "What are the names of the instructors and how many curriculums do they teach?",
    "query": "SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "Show names of teachers that teach at least two courses.",
    "SpiderSynQuestion": "Show names of instructors that teach at least two curriculums.",
    "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers who teach at least two courses?",
    "SpiderSynQuestion": "What are the names of the faculties who teach at least two curriculums?",
    "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "List the names of teachers who have not been arranged to teach courses.",
    "SpiderSynQuestion": "List the names of instructors who have not been arranged to teach curriculums.",
    "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"
  },
  {
    "db_id": "course_teach",
    "SpiderQuestion": "What are the names of the teachers whose courses have not been arranged?",
    "SpiderSynQuestion": "What are the names of the instructors whose curriculums have not been arranged?",
    "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "How many visitors below age 30 are there?",
    "SpiderSynQuestion": "How many guests below age 30 are there?",
    "query": "SELECT count(*) FROM visitor WHERE age  <  30"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.",
    "SpiderSynQuestion": "Find the names of the guests whose membership level is higher than 4, and order the results by the level from high to low.",
    "query": "SELECT name FROM visitor WHERE Level_of_membership  >  4 ORDER BY Level_of_membership DESC"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What is the average age of the visitors whose membership level is not higher than 4?",
    "SpiderSynQuestion": "What is the average age of the guests whose membership level is not higher than 4?",
    "query": "SELECT avg(age) FROM visitor WHERE Level_of_membership  <=  4"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.",
    "SpiderSynQuestion": "Find the name and membership level of the guests whose membership level is higher than 4, and sort by their age from old to young.",
    "query": "SELECT name ,  Level_of_membership FROM visitor WHERE Level_of_membership  >  4 ORDER BY age DESC"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the id and name of the museum that has the most staff members?",
    "SpiderSynQuestion": "Find the id and name of the museum that has the most workers?",
    "query": "SELECT museum_id ,  name FROM museum ORDER BY num_of_staff DESC LIMIT 1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the average number of staff working for the museums that were open before 2009.",
    "SpiderSynQuestion": "Find the average number of worker working for the museums that were open before 2009.",
    "query": "SELECT avg(num_of_staff) FROM museum WHERE open_year  <  2009"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What are the opening year and staff number of the museum named Plaza Museum?",
    "SpiderSynQuestion": "What are the opening year and worker number of the museum named Plaza Museum?",
    "query": "SELECT Num_of_Staff ,  Open_Year FROM museum WHERE name  =  'Plaza Museum'"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.",
    "SpiderSynQuestion": "find the names of museums which have more worker than the minimum worker number of all museums opened after 2010.",
    "query": "SELECT name FROM museum WHERE num_of_staff  >  (SELECT min(num_of_staff) FROM museum WHERE open_year  >  2010)"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "find the id, name and age for visitors who visited some museums more than once.",
    "SpiderSynQuestion": "find the id, name and age for guests who visited some museums more than once.",
    "query": "SELECT t1.id ,  t1.name ,  t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t1.id HAVING count(*)  >  1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?",
    "SpiderSynQuestion": "What are the id, name and membership level of guests who have spent the largest amount of money in total in all museum tickets?",
    "query": "SELECT t2.visitor_id ,  t1.name ,  t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What are the id and name of the museum visited most times?",
    "SpiderSynQuestion": "What are the id and name of the museum visited most times?",
    "query": "SELECT t2.Museum_ID ,  t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID  =  t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What is the name of the museum that had no visitor yet?",
    "SpiderSynQuestion": "What is the name of the museum that had no tourist yet?",
    "query": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the name and age of the visitor who bought the most tickets at once.",
    "SpiderSynQuestion": "Find the name and age of the tourist who bought the most tickets at once.",
    "query": "SELECT t1.name ,  t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What are the average and maximum number of tickets bought in all visits?",
    "SpiderSynQuestion": "What are the average and maximum number of tickets bought in all guests?",
    "query": "SELECT avg(num_of_ticket) ,  max(num_of_ticket) FROM visit"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What is the total ticket expense of the visitors whose membership level is 1?",
    "SpiderSynQuestion": "What is the total ticket expense of the guests whose membership level is 1?",
    "query": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id WHERE t1.Level_of_membership  =  1"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?",
    "SpiderSynQuestion": "What is the name of the tourist who visited both a museum opened before 2009 and a museum opened after 2011?",
    "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "Find the number of visitors who did not visit any museum opened after 2010.",
    "SpiderSynQuestion": "Find the number of guests who did not visit any museum opened after 2010.",
    "query": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID  =  t2.Museum_ID WHERE t1.open_year  >  2010)"
  },
  {
    "db_id": "museum_visit",
    "SpiderQuestion": "How many museums were opened after 2013 or before 2008?",
    "SpiderSynQuestion": "How many museums were opened after 2013 or before 2008?",
    "query": "SELECT count(*) FROM museum WHERE open_year  >  2013 OR open_year  <  2008"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the total number of players.",
    "SpiderSynQuestion": "Find the total number of participants.",
    "query": "SELECT count(*) FROM players"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many players are there?",
    "SpiderSynQuestion": "How many participants are there?",
    "query": "SELECT count(*) FROM players"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the total number of matches.",
    "SpiderSynQuestion": "Find the total number of competitions.",
    "query": "SELECT count(*) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Count the number of matches.",
    "SpiderSynQuestion": "Count the number of competitions.",
    "query": "SELECT count(*) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "List the first name and birth date of all players from the country with code USA.",
    "SpiderSynQuestion": "List the given name and birth date of all participants from the country with code USA.",
    "query": "SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the first names and birth dates of players from the USA?",
    "SpiderSynQuestion": "What are the given names and birth dates of participants from the USA?",
    "query": "SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the average age of losers and winners of all matches.",
    "SpiderSynQuestion": "Find the average age of losers and winners of all games.",
    "query": "SELECT avg(loser_age) ,  avg(winner_age) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the average ages of losers and winners across matches?",
    "SpiderSynQuestion": "What are the average ages of losers and winners across games?",
    "query": "SELECT avg(loser_age) ,  avg(winner_age) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the average rank of winners in all matches.",
    "SpiderSynQuestion": "Find the average rank of winners in all games.",
    "query": "SELECT avg(winner_rank) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the average rank for winners in all matches?",
    "SpiderSynQuestion": "What is the average rank for winners in all competitions?",
    "query": "SELECT avg(winner_rank) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the highest rank of losers in all matches.",
    "SpiderSynQuestion": "Find the highest rank of losers in all competitions.",
    "query": "SELECT min(loser_rank) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the best rank of losers across all matches?",
    "SpiderSynQuestion": "What is the best rank of losers across all contest?",
    "query": "SELECT min(loser_rank) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "find the number of distinct country codes of all players.",
    "SpiderSynQuestion": "find the number of distinct State codes of all participants.",
    "query": "SELECT count(DISTINCT country_code) FROM players"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many distinct countries do players come from?",
    "SpiderSynQuestion": "How many distinct States do participants come from?",
    "query": "SELECT count(DISTINCT country_code) FROM players"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the number of distinct name of losers.",
    "SpiderSynQuestion": "Find the number of distinct name of losers.",
    "query": "SELECT count(DISTINCT loser_name) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many different loser names are there?",
    "SpiderSynQuestion": "How many different loser names are there?",
    "query": "SELECT count(DISTINCT loser_name) FROM matches"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the name of tourney that has more than 10 matches.",
    "SpiderSynQuestion": "Find the names of tourney that has more than 10 competitions.",
    "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the names of tournaments that have more than 10 matches?",
    "SpiderSynQuestion": "What are the names of tournaments that have more than 10 competitions?",
    "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "List the names of all winners who played in both 2013 and 2016.",
    "SpiderSynQuestion": "List the names of all winners who played in both 2013 and 2016.",
    "query": "SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the names of players who won in both 2013 and 2016?",
    "SpiderSynQuestion": "What are the names of participants who won in both 2013 and 2016?",
    "query": "SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "List the number of all matches who played in years of 2013 or 2016.",
    "SpiderSynQuestion": "List the number of all competitions who played in years of 2013 or 2016.",
    "query": "SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many matches were played in 2013 or 2016?",
    "SpiderSynQuestion": "How many competitions were played in 2013 or 2016?",
    "query": "SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?",
    "SpiderSynQuestion": "What are the nation code and given name of the participants who won in both tourney WTA Championships and Australian Open?",
    "query": "SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'WTA Championships' INTERSECT SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'Australian Open'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?",
    "SpiderSynQuestion": "What are the given names and State codes for participants who won both the WTA Championships and the Australian Open?",
    "query": "SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'WTA Championships' INTERSECT SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'Australian Open'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the first name and country code of the oldest player.",
    "SpiderSynQuestion": "Find the given name and State abbreviation of the oldest participant.",
    "query": "SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the first name and country code of the oldest player?",
    "SpiderSynQuestion": "What is the given name and nation abbreviation of the oldest participant?",
    "query": "SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "List the first and last name of all players in the order of birth date.",
    "SpiderSynQuestion": "List the given and family name of all participants in the order of birth date.",
    "query": "SELECT first_name ,  last_name FROM players ORDER BY birth_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the full names of all players, sorted by birth date?",
    "SpiderSynQuestion": "What are the full names of all participants, sorted by birth date?",
    "query": "SELECT first_name ,  last_name FROM players ORDER BY birth_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "List the first and last name of all players who are left / L hand in the order of birth date.",
    "SpiderSynQuestion": "List the given and family name of all participants who are left / L hand in the order of birth date.",
    "query": "SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the full names of all left handed players, in order of birth date?",
    "SpiderSynQuestion": "What are the full names of all left handed participants, in order of birth date?",
    "query": "SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the first name and country code of the player who did the most number of tours.",
    "SpiderSynQuestion": "Find the given name and nation abbreviation of the participant who did the most number of tours.",
    "query": "SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id ORDER BY T2.tours DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the first name and country code of the player with the most tours?",
    "SpiderSynQuestion": "What is the given name and State code of the participant with the most tours?",
    "query": "SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id ORDER BY T2.tours DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the year that has the most number of matches.",
    "SpiderSynQuestion": "Find the year that has the most number of competitions.",
    "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Which year had the most matches?",
    "SpiderSynQuestion": "Which year had the most competitions?",
    "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the name and rank points of the winner who won the most times.",
    "SpiderSynQuestion": "Find the name and rank points of the winner who won the most times.",
    "query": "SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the name of the winner who has won the most matches, and how many rank points does this player have?",
    "SpiderSynQuestion": "What is the name of the winner who has won the most matches, and how many rank points does this player have?",
    "query": "SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.",
    "SpiderSynQuestion": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.",
    "query": "SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?",
    "SpiderSynQuestion": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?",
    "query": "SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "find the names of loser and winner who played in the match with greatest number of minutes.",
    "SpiderSynQuestion": "find the names of loser and winner who played in the competition with greatest number of minutes.",
    "query": "SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the names of the winner and loser who played in the longest match?",
    "SpiderSynQuestion": "What are the names of the winner and loser who played in the longest competition?",
    "query": "SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the average ranking for each player and their first name.",
    "SpiderSynQuestion": "Find the average ranking for each participant and their given name.",
    "query": "SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the first names of all players, and their average rankings?",
    "SpiderSynQuestion": "What are the given names of all participants, and their average rankings?",
    "query": "SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the total ranking points for each player and their first name.",
    "SpiderSynQuestion": "Find the total ranking points for each participant and their given name.",
    "query": "SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the first names of all players, and their total ranking points?",
    "SpiderSynQuestion": "What are the given names of all participants, and their total ranking points?",
    "query": "SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "find the number of players for each country.",
    "SpiderSynQuestion": "find the number of participants for each State.",
    "query": "SELECT count(*) ,  country_code FROM players GROUP BY country_code"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many players are from each country?",
    "SpiderSynQuestion": "How many participants are from each State?",
    "query": "SELECT count(*) ,  country_code FROM players GROUP BY country_code"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "find the code of the country where has the greatest number of players.",
    "SpiderSynQuestion": "find the abbreviation of the State where has the greatest number of participants.",
    "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the code of the country with the most players?",
    "SpiderSynQuestion": "What is the abbreviation of the nation with the most participants?",
    "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the codes of countries that have more than 50 players.",
    "SpiderSynQuestion": "Find the abbreviations of nations that have more than 50 participants.",
    "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the codes of countries with more than 50 players?",
    "SpiderSynQuestion": "What are the abbreviations of nations with more than 50 participants?",
    "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the total number of tours for each ranking date.",
    "SpiderSynQuestion": "Find the total number of trips for each ranking time.",
    "query": "SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many total tours were there for each ranking date?",
    "SpiderSynQuestion": "How many total travels were there for each ranking time?",
    "query": "SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the number of matches happened in each year.",
    "SpiderSynQuestion": "Find the number of games happened in each year.",
    "query": "SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many matches were played in each year?",
    "SpiderSynQuestion": "How many games were played in each year?",
    "query": "SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the name and rank of the 3 youngest winners across all matches.",
    "SpiderSynQuestion": "Find the name and rank of the 3 youngest winners across all competitions.",
    "query": "SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What are the names and ranks of the three youngest winners across all matches?",
    "SpiderSynQuestion": "What are the names and ranks of the three youngest winners across all games?",
    "query": "SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many different winners both participated in the WTA Championships and were left handed?",
    "SpiderSynQuestion": "How many different winners both participated in the WTA Championships and were left handed?",
    "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the number of left handed winners who participated in the WTA Championships.",
    "SpiderSynQuestion": "Find the number of left handed winners who participated in the WTA Championships.",
    "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L'"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.",
    "SpiderSynQuestion": "Find the given name, nation abbreviation and birth date of the winner who has the highest rank points in all games.",
    "query": "SELECT T1.first_name ,  T1.country_code ,  T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?",
    "SpiderSynQuestion": "What is the given name, nation abbreviation, and birth date of the participant with the most winner rank points across all competitions?",
    "query": "SELECT T1.first_name ,  T1.country_code ,  T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "Find the number of players for each hand type.",
    "SpiderSynQuestion": "Find the number of participants for each hand type.",
    "query": "SELECT count(*) ,  hand FROM players GROUP BY hand"
  },
  {
    "db_id": "wta_1",
    "SpiderQuestion": "How many players are there for each hand type?",
    "SpiderSynQuestion": "How many participants are there for each hand type?",
    "query": "SELECT count(*) ,  hand FROM players GROUP BY hand"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "How many ships ended up being 'Captured'?",
    "SpiderSynQuestion": "How many vessels ended up being 'Captured'?",
    "query": "SELECT count(*) FROM ship WHERE disposition_of_ship  =  'Captured'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "List the name and tonnage ordered by in descending alphaetical order for the names.",
    "SpiderSynQuestion": "List the name and tonnage ordered by in descending alphaetical order for the names.",
    "query": "SELECT name ,  tonnage FROM ship ORDER BY name DESC"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "List the name, date and result of each battle.",
    "SpiderSynQuestion": "List the name, date and result of each battle.",
    "query": "SELECT name ,  date FROM battle"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What is maximum and minimum death toll caused each time?",
    "SpiderSynQuestion": "What is maximum and minimum death toll caused each time?",
    "query": "SELECT max(killed) ,  min(killed) FROM death"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What is the average number of injuries caused each time?",
    "SpiderSynQuestion": "What is the average number of injuries caused each time?",
    "query": "SELECT avg(injured) FROM death"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the death and injury situations caused by the ship with tonnage 't'?",
    "SpiderSynQuestion": "What are the death and hurt situations caused by the vessel with tonnage 't'?",
    "query": "SELECT T1.killed ,  T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id WHERE T2.tonnage  =  't'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the name and results of the battles when the bulgarian commander is not 'Boril'",
    "SpiderSynQuestion": "What are the name and results of the battles when the bulgarian commander is not 'Boril'",
    "query": "SELECT name ,  RESULT FROM battle WHERE bulgarian_commander != 'Boril'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the different ids and names of the battles that lost any 'Brig' type shipes?",
    "SpiderSynQuestion": "What are the different ids and names of the combat that lost any 'Brig' type vessels?",
    "query": "SELECT DISTINCT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.ship_type  =  'Brig'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the ids and names of the battles that led to more than 10 people killed in total.",
    "SpiderSynQuestion": "What are the ids and names of the combat that led to more than 10 people dead in total.",
    "query": "SELECT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle JOIN death AS T3 ON T2.id  =  T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed)  >  10"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What is the ship id and name that caused most total injuries?",
    "SpiderSynQuestion": "What is the vessel id and name that caused most total injuries?",
    "query": "SELECT T2.id ,  T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?",
    "SpiderSynQuestion": "What are the distinct combat names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?",
    "query": "SELECT name FROM battle WHERE bulgarian_commander  =  'Kaloyan' AND latin_commander  =  'Baldwin I'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "How many different results are there for the battles?",
    "SpiderSynQuestion": "How many different results are there for the combats?",
    "query": "SELECT count(DISTINCT RESULT) FROM battle"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "How many battles did not lose any ship with tonnage '225'?",
    "SpiderSynQuestion": "How many combats did not lose any vessel with tonnage '225'?",
    "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage  =  '225' );"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'",
    "SpiderSynQuestion": "List the name and date the combat that has lost the vessel named 'Lettice' and the vessel named 'HMS Atalanta'",
    "query": "SELECT T1.name ,  T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.name  =  'Lettice' INTERSECT SELECT T1.name ,  T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.name  =  'HMS Atalanta'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.",
    "SpiderSynQuestion": "Show names, results and bulgarian commanders of the combats with no vessels lost in the 'English Channel'.",
    "query": "SELECT name ,  RESULT ,  bulgarian_commander FROM battle EXCEPT SELECT T1.name ,  T1.result ,  T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel'"
  },
  {
    "db_id": "battle_death",
    "SpiderQuestion": "What are the notes of the death events which has substring 'East'?",
    "SpiderSynQuestion": "What are the remark of the death events which has substring 'East'?",
    "query": "SELECT note FROM death WHERE note LIKE '%East%'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "what are all the addresses including line 1 and line 2?",
    "SpiderSynQuestion": "what are all the addresses including line 1 and line 2?",
    "query": "SELECT line_1 ,  line_2 FROM addresses"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the first and second line for all addresses?",
    "SpiderSynQuestion": "What is the first and second line for all addresses?",
    "query": "SELECT line_1 ,  line_2 FROM addresses"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many courses in total are listed?",
    "SpiderSynQuestion": "How many curriculums in total are listed?",
    "query": "SELECT count(*) FROM Courses"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many courses are there?",
    "SpiderSynQuestion": "How many curriculums are there?",
    "query": "SELECT count(*) FROM Courses"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How is the math course described?",
    "SpiderSynQuestion": "How is the math curriculum described?",
    "query": "SELECT course_description FROM Courses WHERE course_name  =  'math'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the descriptions for all the math courses?",
    "SpiderSynQuestion": "What are the describing content for all the math curriculums?",
    "query": "SELECT course_description FROM Courses WHERE course_name  =  'math'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the zip code of the address in the city Port Chelsea?",
    "SpiderSynQuestion": "What is the zip code of the position in the city Port Chelsea?",
    "query": "SELECT zip_postcode FROM Addresses WHERE city  =  'Port Chelsea'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the zip code for Port Chelsea?",
    "SpiderSynQuestion": "What is the zip code for Port Chelsea?",
    "query": "SELECT zip_postcode FROM Addresses WHERE city  =  'Port Chelsea'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Which department offers the most number of degrees? List department name and id.",
    "SpiderSynQuestion": "Which division offers the most number of degrees? List division name and id.",
    "query": "SELECT T2.department_name ,  T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "For each department id, what is the name of the department with the most number of degrees?",
    "SpiderSynQuestion": "For each division id, what is the name of the division with the most number of degrees?",
    "query": "SELECT T2.department_name ,  T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many departments offer any degree?",
    "SpiderSynQuestion": "How many departments offer any degree?",
    "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many different departments offer degrees?",
    "SpiderSynQuestion": "How many different departments offer degrees?",
    "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many different degree names are offered?",
    "SpiderSynQuestion": "How many different degree names are offered?",
    "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many different degrees are offered?",
    "SpiderSynQuestion": "How many different degrees are offered?",
    "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many degrees does the engineering department offer?",
    "SpiderSynQuestion": "How many degrees does the engineering division offer?",
    "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id  =  T2.department_id WHERE T1.department_name  =  'engineer'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many degrees does the engineering department have?",
    "SpiderSynQuestion": "How many degrees does the engineering department have?",
    "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id  =  T2.department_id WHERE T1.department_name  =  'engineer'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names and descriptions of all the sections?",
    "SpiderSynQuestion": "What are the names and describing contents of all the sections?",
    "query": "SELECT section_name ,  section_description FROM Sections"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names and descriptions for all the sections?",
    "SpiderSynQuestion": "What are the names and describing details for all the sections?",
    "query": "SELECT section_name ,  section_description FROM Sections"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names and id of courses having at most 2 sections?",
    "SpiderSynQuestion": "What are the names and id of curriculums having at most 2 sections?",
    "query": "SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names and ids of every course with less than 2 sections?",
    "SpiderSynQuestion": "What are the names and ids of every curriculum with less than 2 sections?",
    "query": "SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "List the section_name in reversed lexicographical order.",
    "SpiderSynQuestion": "List the section_name in reversed lexicographical order.",
    "query": "SELECT section_name FROM Sections ORDER BY section_name DESC"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names of the sections in reverse alphabetical order?",
    "SpiderSynQuestion": "What are the names of the sections in reverse alphabetical order?",
    "query": "SELECT section_name FROM Sections ORDER BY section_name DESC"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the semester which most student registered in? Show both the name and the id.",
    "SpiderSynQuestion": "What is the academic session which most undergraduate registered in? Show both the name and the id.",
    "query": "SELECT T1.semester_name ,  T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id  =  T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "For each semester, what is the name and id of the one with the most students registered?",
    "SpiderSynQuestion": "For each semester, what is the name and id of the one with the most undergraduate registered?",
    "query": "SELECT T1.semester_name ,  T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id  =  T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the description of the department whose name has the substring the computer?",
    "SpiderSynQuestion": "What is the describing details of the division whose name has the substring the computer?",
    "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the department description for the one whose name has the word computer?",
    "SpiderSynQuestion": "What is the division describing details for the one whose name has the word computer?",
    "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.",
    "SpiderSynQuestion": "Who are enrolled in 2 degree programs in one term? List the given name, middle name and family name and the id.",
    "query": "SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?",
    "SpiderSynQuestion": "What are the given, middle, and family names, along with the ids, of all undergraduates who enrolled in 2 degree programs in one term?",
    "query": "SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.",
    "SpiderSynQuestion": "Who is enrolled in a Bachelor degree program? List the given name, middle name, family name.",
    "query": "SELECT DISTINCT T1.first_name ,  T1.middle_name ,  T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id  =  T3.degree_program_id WHERE T3.degree_summary_name  =  'Bachelor'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?",
    "SpiderSynQuestion": "What are the given, middle, and family names for everybody enrolled in a Bachelors program?",
    "query": "SELECT DISTINCT T1.first_name ,  T1.middle_name ,  T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id  =  T3.degree_program_id WHERE T3.degree_summary_name  =  'Bachelor'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Find the kind of program which most number of students are enrolled in?",
    "SpiderSynQuestion": "Find the kind of program which most number of students are enrolled in?",
    "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the degree summary name that has the most number of students enrolled?",
    "SpiderSynQuestion": "What is the degree summary name that has the most number of students enrolled?",
    "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Find the program which most number of students are enrolled in. List both the id and the summary.",
    "SpiderSynQuestion": "Find the program which most number of students are enrolled in. List both the id and the summary.",
    "query": "SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the program id and the summary of the degree that has the most students enrolled?",
    "SpiderSynQuestion": "What is the program id and the summary of the degree that has the most students enrolled?",
    "query": "SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.",
    "SpiderSynQuestion": "Which student has enrolled for the most times in any program? List the id, given name, middle name, family name, the number of enrollments and undergraduate id.",
    "query": "SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  count(*) ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?",
    "SpiderSynQuestion": "What is the given, middle, and family name, along with the id and number of enrollments, for the undergraduate who enrolled the most in any program?",
    "query": "SELECT  T1.first_name ,  T1.middle_name ,  T1.last_name ,  count(*) ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Which semesters do not have any student enrolled? List the semester name.",
    "SpiderSynQuestion": "Which academic sessions do not have any student enrolled? List the academic session name.",
    "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the name of the semester with no students enrolled?",
    "SpiderSynQuestion": "What is the name of the academic session with no students enrolled?",
    "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are all the course names of the courses which ever have students enrolled in?",
    "SpiderSynQuestion": "What are all the course names of the curriculums which ever have students enrolled in?",
    "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the names of all courses that have some students enrolled?",
    "SpiderSynQuestion": "What are the names of all curriculums that have some students enrolled?",
    "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What's the name of the course with most number of enrollments?",
    "SpiderSynQuestion": "What's the name of the curriculum with most number of enrollments?",
    "query": "SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the name of the course with the most students enrolled?",
    "SpiderSynQuestion": "What is the name of the curriculum with the most students enrolled?",
    "query": "SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.",
    "SpiderSynQuestion": "Find the family name of the students who currently live in the state of North Carolina but have not registered in any degree program.",
    "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id  =  T2.address_id WHERE T2.state_province_county  =  'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id  =  T4.student_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?",
    "SpiderSynQuestion": "What are the family name of the students who live in North Carolina but have not registered in any degree programs?",
    "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id  =  T2.address_id WHERE T2.state_province_county  =  'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id  =  T4.student_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Show the date and id of the transcript with at least 2 course results.",
    "SpiderSynQuestion": "Show the date and id of the student record with at least 2 curriculum results.",
    "query": "SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the date and id of the transcript with at least 2 courses listed?",
    "SpiderSynQuestion": "What is the date and id of the student record with at least 2 curriculums listed?",
    "query": "SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the phone number of the man with the first name Timmothy and the last name Ward?",
    "SpiderSynQuestion": "What is the phone number of the man with the given name Timmothy and the family name Ward?",
    "query": "SELECT cell_mobile_number FROM Students WHERE first_name  =  'Timmothy' AND last_name  =  'Ward'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the mobile phone number of the student named Timothy Ward?",
    "SpiderSynQuestion": "What is the phone number of the student named Timothy Ward?",
    "query": "SELECT cell_mobile_number FROM Students WHERE first_name  =  'Timmothy' AND last_name  =  'Ward'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Who is the first student to register? List the first name, middle name and last name.",
    "SpiderSynQuestion": "Who is the first student to register? List the given name, middle name and family name.",
    "query": "SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the first, middle, and last name of the first student to register?",
    "SpiderSynQuestion": "What is the given, middle, and family name of the first student to register?",
    "query": "SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Who is the earliest graduate of the school? List the first name, middle name and last name.",
    "SpiderSynQuestion": "Who is the earliest graduate of the school? List the given name, middle name and family name.",
    "query": "SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_left ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the first, middle, and last name of the earliest school graduate?",
    "SpiderSynQuestion": "What is the given, middle, and family name of the earliest school graduate?",
    "query": "SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_left ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Whose permanent address is different from his or her current address? List his or her first name.",
    "SpiderSynQuestion": "Whose permanent address is different from his or her current address? List his or her given name.",
    "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the first name of the student whose permanent address is different from his or her current one?",
    "SpiderSynQuestion": "What is the given name of the student whose permanent address is different from his or her current one?",
    "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Which address holds the most number of students currently? List the address id and all lines.",
    "SpiderSynQuestion": "Which place holds the most number of students currently? List the place id and all lines.",
    "query": "SELECT T1.address_id ,  T1.line_1 ,  T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the id, line 1, and line 2 of the address with the most students?",
    "SpiderSynQuestion": "What is the id, line 1, and line 2 of the address with the most students?",
    "query": "SELECT T1.address_id ,  T1.line_1 ,  T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "On average, when were the transcripts printed?",
    "SpiderSynQuestion": "On average, when were the student record printed?",
    "query": "SELECT avg(transcript_date) FROM Transcripts"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the average transcript date?",
    "SpiderSynQuestion": "What is the average student record date?",
    "query": "SELECT avg(transcript_date) FROM Transcripts"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "When is the first transcript released? List the date and details.",
    "SpiderSynQuestion": "When is the first student record released? List the date and details.",
    "query": "SELECT transcript_date ,  other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the earliest date of a transcript release, and what details can you tell me?",
    "SpiderSynQuestion": "What is the earliest date of a transcript release, and what particulars can you tell me?",
    "query": "SELECT transcript_date ,  other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many transcripts are released?",
    "SpiderSynQuestion": "How many student record are released?",
    "query": "SELECT count(*) FROM Transcripts"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many transcripts are listed?",
    "SpiderSynQuestion": "How many student records are listed?",
    "query": "SELECT count(*) FROM Transcripts"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the last transcript release date?",
    "SpiderSynQuestion": "What is the last student record release date?",
    "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "When was the last transcript released?",
    "SpiderSynQuestion": "When was the last student record released?",
    "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.",
    "SpiderSynQuestion": "How many times at most can a curriculum enrollment result show in different student records? Also show the curriculum enrollment id.",
    "query": "SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?",
    "SpiderSynQuestion": "What is the maximum number of times that a curriculum shows up in different student records and what is that curriculum's enrollment id?",
    "query": "SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Show the date of the transcript which shows the least number of results, also list the id.",
    "SpiderSynQuestion": "Show the date of the student record which shows the least number of results, also list the id.",
    "query": "SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the date and id of the transcript with the least number of results?",
    "SpiderSynQuestion": "What is the date and id of the student record with the least number of results?",
    "query": "SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Find the semester when both Master students and Bachelor students got enrolled in.",
    "SpiderSynQuestion": "Find the academic session when both Master students and Bachelor students got enrolled in.",
    "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the id of the semester that had both Masters and Bachelors students enrolled?",
    "SpiderSynQuestion": "What is the id of the academic session that had both Masters and Bachelors students enrolled?",
    "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "How many different addresses do the students currently live?",
    "SpiderSynQuestion": "How many different places do the students currently live?",
    "query": "SELECT count(DISTINCT current_address_id) FROM Students"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the different addresses that have students living there?",
    "SpiderSynQuestion": "What are the different places that have students living there?",
    "query": "SELECT count(DISTINCT current_address_id) FROM Students"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "List all the student details in reversed lexicographical order.",
    "SpiderSynQuestion": "List all the student particulars in reversed lexicographical order.",
    "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What other details can you tell me about students in reverse alphabetical order?",
    "SpiderSynQuestion": "What other particulars can you tell me about students in reverse alphabetical order?",
    "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Describe the section h.",
    "SpiderSynQuestion": "Describe the section h.",
    "query": "SELECT section_description FROM Sections WHERE section_name  =  'h'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What is the description for the section named h?",
    "SpiderSynQuestion": "What is the description for the section named h?",
    "query": "SELECT section_description FROM Sections WHERE section_name  =  'h'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582.",
    "SpiderSynQuestion": "Find the given name of the students who permanently live in the country Haiti or have the phone number 09700166582.",
    "query": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id  =  T2.address_id WHERE T2.country  =  'Haiti' UNION SELECT first_name FROM Students WHERE cell_mobile_number  =  '09700166582'"
  },
  {
    "db_id": "student_transcripts_tracking",
    "SpiderQuestion": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582?",
    "SpiderSynQuestion": "What are the given names of the students who live in Haiti permanently or have the phone number 09700166582?",
    "query": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id  =  T2.address_id WHERE T2.country  =  'Haiti' UNION SELECT first_name FROM Students WHERE cell_mobile_number  =  '09700166582'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the title of all cartoons in alphabetical order.",
    "SpiderSynQuestion": "List the name of all animations in alphabetical order.",
    "query": "SELECT Title FROM Cartoon ORDER BY title"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the titles of the cartoons sorted alphabetically?",
    "SpiderSynQuestion": "What are the names of the animations sorted alphabetically?",
    "query": "SELECT Title FROM Cartoon ORDER BY title"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List all cartoon directed by \"Ben Jones\".",
    "SpiderSynQuestion": "List all animation directed by \"Ben Jones\".",
    "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the names of all cartoons directed by Ben Jones?",
    "SpiderSynQuestion": "What are the names of all animations directed by Ben Jones?",
    "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "How many cartoons were written by \"Joseph Kuhr\"?",
    "SpiderSynQuestion": "How many animations were written by \"Joseph Kuhr\"?",
    "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the number of cartoones written by Joseph Kuhr?",
    "SpiderSynQuestion": "What is the number of animations written by Joseph Kuhr?",
    "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "list all cartoon titles and their directors ordered by their air date",
    "SpiderSynQuestion": "list all animation and their directors ordered by their airdate",
    "query": "SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the name and directors of all the cartoons that are ordered by air date?",
    "SpiderSynQuestion": "What is the name and directors of all the animation that are ordered by released date?",
    "query": "SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".",
    "SpiderSynQuestion": "List the name of all animation directed by \"Ben Jones\" or \"Brandon Vietti\".",
    "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?",
    "SpiderSynQuestion": "What are the names of all animation directed by Ben Jones or Brandon Vietti?",
    "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "Which country has the most of TV Channels? List the country and number of TV Channels it has.",
    "SpiderSynQuestion": "Which country has the most of TV Channels? List the country name and number of TV Channels it has.",
    "query": "SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the country with the most number of TV Channels and how many does it have?",
    "SpiderSynQuestion": "What is the State with the most number of TV Channels and how many does it have?",
    "query": "SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the number of different series names and contents in the TV Channel table.",
    "SpiderSynQuestion": "List the number of different serial names and contents in the TV Channel table.",
    "query": "SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "How many different series and contents are listed in the TV Channel table?",
    "SpiderSynQuestion": "How many different serial and contents are listed in the TV Channel table?",
    "query": "SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the content of TV Channel with serial name \"Sky Radio\"?",
    "SpiderSynQuestion": "What is the content of TV Channel with serial name \"Sky Radio\"?",
    "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the content of the series Sky Radio?",
    "SpiderSynQuestion": "What is the content of the series Sky Radio?",
    "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?",
    "SpiderSynQuestion": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?",
    "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the Package Options of the TV Channels whose series names are Sky Radio?",
    "SpiderSynQuestion": "What are the Package Options of the TV Channels whose series names are Sky Radio?",
    "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "How many TV Channel using language English?",
    "SpiderSynQuestion": "How many TV Channel using language English?",
    "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "How many TV Channels use the English language?",
    "SpiderSynQuestion": "How many TV Channels use the English language?",
    "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the language used least number of TV Channel. List language and number of TV Channel.",
    "SpiderSynQuestion": "List the language used least number of TV Channel. List language and number of TV Channel.",
    "query": "SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the languages used by the least number of TV Channels and how many channels use it?",
    "SpiderSynQuestion": "What are the languages used by the least number of TV Channels and how many channels use it?",
    "query": "SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List each language and the number of TV Channels using it.",
    "SpiderSynQuestion": "List each language and the number of TV Channels using it.",
    "query": "SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "For each language, list the number of TV Channels that use it.",
    "SpiderSynQuestion": "For each language, list the number of TV Channels that use it.",
    "query": "SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.",
    "SpiderSynQuestion": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.",
    "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?",
    "SpiderSynQuestion": "What is the serial name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?",
    "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the title of all  Cartoons showed on TV Channel with series name \"Sky Radio\".",
    "SpiderSynQuestion": "List the name of all  animations showed on TV Channel with series name \"Sky Radio\".",
    "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?",
    "SpiderSynQuestion": "What is the name of all the animations that are on the TV Channel with the series name \"Sky Radio\"?",
    "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the  Episode of all TV series sorted by rating.",
    "SpiderSynQuestion": "List the Episode of all TV series sorted by rating.",
    "query": "SELECT Episode FROM TV_series ORDER BY rating"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are all of the episodes ordered by ratings?",
    "SpiderSynQuestion": "What are all of the episodes ordered by ratings?",
    "query": "SELECT Episode FROM TV_series ORDER BY rating"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List top 3 highest Rating  TV series. List the TV series's Episode and Rating.",
    "SpiderSynQuestion": "List top 3 highest score  TV series. List the TV series's Episode and score.",
    "query": "SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are 3 most highly rated episodes in the TV series table and what were those ratings?",
    "SpiderSynQuestion": "What are 3 most highly rated episodes in the TV series table and what were those scores?",
    "query": "SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is minimum and maximum share of TV series?",
    "SpiderSynQuestion": "What is minimum and maximum share of TV series?",
    "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the maximum and minimum share for the TV series?",
    "SpiderSynQuestion": "What is the maximum and minimum share for the TV series?",
    "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?",
    "SpiderSynQuestion": "What is the airdate of TV series with Episode \"A Love of a Lifetime\"?",
    "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "When did the episode \"A Love of a Lifetime\" air?",
    "SpiderSynQuestion": "When did the episode \"A Love of a Lifetime\" released?",
    "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?",
    "SpiderSynQuestion": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?",
    "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the weekly rank for the episode \"A Love of a Lifetime\"?",
    "SpiderSynQuestion": "What is the score per week for the episode \"A Love of a Lifetime\"?",
    "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.",
    "SpiderSynQuestion": "What is the TV Channel of TV serial with Episode \"A Love of a Lifetime\"? List the TV Channel's serial name.",
    "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the name of the series that has the episode \"A Love of a Lifetime\"?",
    "SpiderSynQuestion": "What is the serial name that has the episode \"A Love of a Lifetime\"?",
    "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "List the Episode of all  TV series showed on TV Channel with series name \"Sky Radio\".",
    "SpiderSynQuestion": "List the Episode of all  TV series showed on TV Channel with series name \"Sky Radio\".",
    "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the episode for the TV series named \"Sky Radio\"?",
    "SpiderSynQuestion": "What is the episode for the TV series named \"Sky Radio\"?",
    "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "Find the number of cartoons directed by each of the listed directors.",
    "SpiderSynQuestion": "Find the number of animations directed by each of the listed directors.",
    "query": "SELECT count(*) ,  Directed_by FROM cartoon GROUP BY Directed_by"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "How many cartoons did each director create?",
    "SpiderSynQuestion": "How many animations did each director create?",
    "query": "SELECT count(*) ,  Directed_by FROM cartoon GROUP BY Directed_by"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "Find the production code and channel of the most recently aired cartoon.",
    "SpiderSynQuestion": "Find the production number and channel of the most recently released cartoon.",
    "query": "SELECT production_code ,  channel FROM cartoon ORDER BY original_air_date LIMIT 1"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the produdction code and channel of the most recent cartoon?",
    "SpiderSynQuestion": "What is the produdction number and channel of the most recent cartoon?",
    "query": "SELECT production_code ,  channel FROM cartoon ORDER BY original_air_date LIMIT 1"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "Find the package choice and series name of the TV channel that has high definition TV.",
    "SpiderSynQuestion": "Find the package choice and serial name of the TV channel that has HD TV.",
    "query": "SELECT package_option ,  series_name FROM TV_Channel WHERE hight_definition_TV  =  \"yes\""
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the package options and the name of the series for the TV Channel that supports high definition TV?",
    "SpiderSynQuestion": "What are the package options and the name of the serial for the TV Channel that supports HD TV?",
    "query": "SELECT package_option ,  series_name FROM TV_Channel WHERE hight_definition_TV  =  \"yes\""
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "which countries' tv channels are playing some cartoon written by Todd Casey?",
    "SpiderSynQuestion": "which countries' tv channels are playing some animation written by Todd Casey?",
    "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the countries that have cartoons on TV that were written by Todd Casey?",
    "SpiderSynQuestion": "What are the State that have animations on TV that were written by Todd Casey?",
    "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "which countries' tv channels are not playing any cartoon written by Todd Casey?",
    "SpiderSynQuestion": "which countries' tv channels are not playing any animation written by Todd Casey?",
    "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the countries that are not playing cartoons written by Todd Casey?",
    "SpiderSynQuestion": "What are the States that are not playing animations written by Todd Casey?",
    "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?",
    "SpiderSynQuestion": "Find the serial name and State of the tv channel that is playing some animation directed by Ben Jones and Michael Chang?",
    "query": "SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?",
    "SpiderSynQuestion": "What is the serial name and nation of all TV channels that are playing animations directed by Ben Jones and animations directed by Michael Chang?",
    "query": "SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "find the pixel aspect ratio and nation of the tv channels that do not use English.",
    "SpiderSynQuestion": "find the pixel aspect ratio and nation of the tv channels that do not use English.",
    "query": "SELECT Pixel_aspect_ratio_PAR ,  country FROM tv_channel WHERE LANGUAGE != 'English'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?",
    "SpiderSynQuestion": "What is the pixel aspect ratio and nation of origin for all TV channels that do not use English?",
    "query": "SELECT Pixel_aspect_ratio_PAR ,  country FROM tv_channel WHERE LANGUAGE != 'English'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "find id of the tv channels that from the countries where have more than two tv channels.",
    "SpiderSynQuestion": "find id of the tv channels that from the States where have more than two tv channels.",
    "query": "SELECT id FROM tv_channel where country in(select country from tv_channel GROUP BY country HAVING count(*)  >  2)"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the ids of all tv channels that have more than 2 TV channels?",
    "SpiderSynQuestion": "What are the ids of all tv channels that have more than 2 TV channels?",
    "query": "SELECT id FROM tv_channel where country in(select country from tv_channel GROUP BY country HAVING count(*)  >  2)"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "find the id of tv channels that do not play any cartoon directed by Ben Jones.",
    "SpiderSynQuestion": "find the id of tv channels that do not play any animation directed by Ben Jones.",
    "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?",
    "SpiderSynQuestion": "What are the ids of the TV channels that do not have any animations directed by Ben Jones?",
    "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.",
    "SpiderSynQuestion": "find the package option of the tv channel that do not have any animation directed by Ben Jones.",
    "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones')"
  },
  {
    "db_id": "tvshow",
    "SpiderQuestion": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?",
    "SpiderSynQuestion": "What are the package options of all tv channels that are not playing any animations directed by Ben Jones?",
    "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones')"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "How many poker players are there?",
    "SpiderSynQuestion": "How many car gamers are there?",
    "query": "SELECT count(*) FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Count the number of poker players.",
    "SpiderSynQuestion": "Count the number of car gamers.",
    "query": "SELECT count(*) FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "List the earnings of poker players in descending order.",
    "SpiderSynQuestion": "List the earnings of poker players in descending order.",
    "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the earnings of poker players, ordered descending by value?",
    "SpiderSynQuestion": "What are the earnings of poker players, ordered descending by value?",
    "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "List the final tables made and the best finishes of poker players.",
    "SpiderSynQuestion": "List the final tables made and the best finishes of car gamers.",
    "query": "SELECT Final_Table_Made ,  Best_Finish FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the final tables made and best finishes for all poker players?",
    "SpiderSynQuestion": "What are the final tables made and best finishes for all car gamers?",
    "query": "SELECT Final_Table_Made ,  Best_Finish FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the average earnings of poker players?",
    "SpiderSynQuestion": "What is the average revenues of car gamers?",
    "query": "SELECT avg(Earnings) FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the average earnings across all poker players.",
    "SpiderSynQuestion": "Return the average incomes across all car gamers.",
    "query": "SELECT avg(Earnings) FROM poker_player"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the money rank of the poker player with the highest earnings?",
    "SpiderSynQuestion": "What is the money rank of the car gamer with the highest incomes?",
    "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the money rank of the player with the greatest earnings.",
    "SpiderSynQuestion": "Return the money rank of the gamer with the greatest revenues.",
    "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the maximum number of final tables made among poker players with earnings less than 200000?",
    "SpiderSynQuestion": "What is the maximum number of last tables made among car gamers with revenues less than 200000?",
    "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the maximum final tables made across all poker players who have earnings below 200000.",
    "SpiderSynQuestion": "Return the maximum final tables made across all car gamers who have revenues below 200000.",
    "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of poker players?",
    "SpiderSynQuestion": "What are the names of car gamers?",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the names of all the poker players.",
    "SpiderSynQuestion": "Return the names of all the car gamers.",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of poker players whose earnings is higher than 300000?",
    "SpiderSynQuestion": "What are the names of car gamers whose incomes is higher than 300000?",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Give the names of poker players who have earnings above 300000.",
    "SpiderSynQuestion": "Give the names of car gamers who have revenues above 300000.",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "List the names of poker players ordered by the final tables made in ascending order.",
    "SpiderSynQuestion": "List the names of car gamers ordered by the final tables made in ascending order.",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of poker players, ordered ascending by the number of final tables they have made?",
    "SpiderSynQuestion": "What are the names of car gamers, ordered ascending by the number of final tables they have made?",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the birth date of the poker player with the lowest earnings?",
    "SpiderSynQuestion": "What is the birth date of the car gamers with the lowest revenues?",
    "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the birth date of the poker player with the lowest earnings.",
    "SpiderSynQuestion": "Return the birth date of the car gamers with the lowest revenues.",
    "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the money rank of the tallest poker player?",
    "SpiderSynQuestion": "What is the money rank of the tallest car gamer?",
    "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the money rank of the poker player with the greatest height.",
    "SpiderSynQuestion": "Return the money rank of the car gamer with the greatest height.",
    "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the average earnings of poker players with height higher than 200?",
    "SpiderSynQuestion": "What is the average revenues of car gamers with height higher than 200?",
    "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Give average earnings of poker players who are taller than 200.",
    "SpiderSynQuestion": "Give average revenues of car gamers who are taller than 200.",
    "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of poker players in descending order of earnings?",
    "SpiderSynQuestion": "What are the names of car gamers in descending order of revenues?",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the names of poker players sorted by their earnings descending.",
    "SpiderSynQuestion": "Return the names of car gamers sorted by their revenues descending.",
    "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are different nationalities of people and the corresponding number of people from each nation?",
    "SpiderSynQuestion": "What are different country of people and the corresponding number of people from each country?",
    "query": "SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "How many people are there of each nationality?",
    "SpiderSynQuestion": "How many people are there of each country?",
    "query": "SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What is the most common nationality of people?",
    "SpiderSynQuestion": "What is the most common country of people?",
    "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Give the nationality that is most common across all people.",
    "SpiderSynQuestion": "Give the country that is most common across all people.",
    "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the nationalities that are shared by at least two people?",
    "SpiderSynQuestion": "What are the countries that are shared by at least two people?",
    "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Return the nationalities for which there are two or more people.",
    "SpiderSynQuestion": "Return the countries for which there are two or more people.",
    "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "List the names and birth dates of people in ascending alphabetical order of name.",
    "SpiderSynQuestion": "List the names and birth dates of people in ascending alphabetical order of name.",
    "query": "SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names and birth dates of people, ordered by their names in alphabetical order?",
    "SpiderSynQuestion": "What are the names and birth dates of people, ordered by their names in alphabetical order?",
    "query": "SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Show names of people whose nationality is not \"Russia\".",
    "SpiderSynQuestion": "Show names of people whose nationality is not \"Russia\".",
    "query": "SELECT Name FROM people WHERE Nationality != \"Russia\""
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of people who are not from Russia?",
    "SpiderSynQuestion": "What are the names of people who are not from Russia?",
    "query": "SELECT Name FROM people WHERE Nationality != \"Russia\""
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "List the names of people that are not poker players.",
    "SpiderSynQuestion": "List the names of people that are not car gamers.",
    "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "What are the names of people who do not play poker?",
    "SpiderSynQuestion": "What are the names of people who do not car gamer?",
    "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "How many distinct nationalities are there?",
    "SpiderSynQuestion": "How many distinct countries are there?",
    "query": "SELECT count(DISTINCT Nationality) FROM people"
  },
  {
    "db_id": "poker_player",
    "SpiderQuestion": "Count the number of different nationalities.",
    "SpiderSynQuestion": "Count the number of different countries.",
    "query": "SELECT count(DISTINCT Nationality) FROM people"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "How many states are there?",
    "SpiderSynQuestion": "How many states are there?",
    "query": "SELECT count(*) FROM area_code_state"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "List the contestant numbers and names, ordered by contestant name descending.",
    "SpiderSynQuestion": "List the competitor numbers and names, ordered by competitor name descending.",
    "query": "SELECT contestant_number ,  contestant_name FROM contestants ORDER BY contestant_name DESC"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "List the vote ids, phone numbers and states of all votes.",
    "SpiderSynQuestion": "List the vote ids, telephone numbers and states of all votes.",
    "query": "SELECT vote_id ,  phone_number ,  state FROM votes"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the maximum and minimum values of area codes?",
    "SpiderSynQuestion": "What are the maximum and minimum values of area codes?",
    "query": "SELECT max(area_code) ,  min(area_code) FROM area_code_state"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What is last date created of votes from the state 'CA'?",
    "SpiderSynQuestion": "What is last date created of votes from the state 'CA'?",
    "query": "SELECT max(created) FROM votes WHERE state  =  'CA'"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the names of the contestants whose names are not 'Jessie Alloway'",
    "SpiderSynQuestion": "What are the names of the participants whose names are not 'Jessie Alloway'",
    "query": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the distinct states and create time of all votes?",
    "SpiderSynQuestion": "What are the distinct states and set up time of all votes?",
    "query": "SELECT DISTINCT state ,  created FROM votes"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the contestant numbers and names of the contestants who had at least two votes?",
    "SpiderSynQuestion": "What are the participant numbers and names of the participants who had at least two votes?",
    "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number GROUP BY T1.contestant_number HAVING count(*)  >=  2"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?",
    "SpiderSynQuestion": "Of all the competitors who got voted, what is the competitor number and name of the competitor who got least votes?",
    "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the number of votes from state 'NY' or 'CA'?",
    "SpiderSynQuestion": "What are the number of votes from nation 'NY' or 'CA'?",
    "query": "SELECT count(*) FROM votes WHERE state  =  'NY' OR state  =  'CA'"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "How many contestants did not get voted?",
    "SpiderSynQuestion": "How many competitors did not get voted?",
    "query": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What is the area code in which the most voters voted?",
    "SpiderSynQuestion": "What is the area number in which the most voters voted?",
    "query": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state  =  T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?",
    "SpiderSynQuestion": "What are the set up dates, states, and telephone numbers of the votes that were for the competitor named 'Tabatha Gehling'?",
    "query": "SELECT T2.created ,  T2.state ,  T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number WHERE T1.contestant_name  =  'Tabatha Gehling'"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.",
    "SpiderSynQuestion": "List the area codes in which voters voted both for the participant 'Tabatha Gehling' and the participant 'Kelly Clauss'.",
    "query": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number JOIN area_code_state AS T3 ON T2.state  =  T3.state WHERE T1.contestant_name  =  'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number JOIN area_code_state AS T3 ON T2.state  =  T3.state WHERE T1.contestant_name  =  'Kelly Clauss'"
  },
  {
    "db_id": "voter_1",
    "SpiderQuestion": "Return the names the contestants whose names contain the substring 'Al'.",
    "SpiderSynQuestion": "Return the names the competitors whose names contain the substring 'Al'.",
    "query": "SELECT contestant_name FROM contestants WHERE contestant_name LIKE \"%Al%\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of all the countries that became independent after 1950?",
    "SpiderSynQuestion": "What are the names of all the States that became sovereign after 1950?",
    "query": "SELECT Name FROM country WHERE IndepYear  >  1950"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the names of the nations that were founded after 1950.",
    "SpiderSynQuestion": "Give the names of the nations that were founded after 1950.",
    "query": "SELECT Name FROM country WHERE IndepYear  >  1950"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many countries have a republic as their form of government?",
    "SpiderSynQuestion": "How many nations have a republic as their form of government?",
    "query": "SELECT count(*) FROM country WHERE GovernmentForm  =  \"Republic\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many countries have governments that are republics?",
    "SpiderSynQuestion": "How many nations have governments that are republics?",
    "query": "SELECT count(*) FROM country WHERE GovernmentForm  =  \"Republic\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total surface area of the countries in the Caribbean region?",
    "SpiderSynQuestion": "What is the total territory of the State in the Caribbean region?",
    "query": "SELECT sum(SurfaceArea) FROM country WHERE Region  =  \"Caribbean\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How much surface area do the countires in the Caribbean cover together?",
    "SpiderSynQuestion": "How much territory do the countires in the Caribbean cover together?",
    "query": "SELECT sum(SurfaceArea) FROM country WHERE Region  =  \"Caribbean\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which continent is Anguilla in?",
    "SpiderSynQuestion": "Which continent is Anguilla in?",
    "query": "SELECT Continent FROM country WHERE Name  =  \"Anguilla\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the continent name which Anguilla belongs to?",
    "SpiderSynQuestion": "What is the continent name which Anguilla belongs to?",
    "query": "SELECT Continent FROM country WHERE Name  =  \"Anguilla\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which region is the city Kabul located in?",
    "SpiderSynQuestion": "Which region is the city Kabul located in?",
    "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Name  =  \"Kabul\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What region is Kabul in?",
    "SpiderSynQuestion": "What region is Kabul in?",
    "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Name  =  \"Kabul\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which language is the most popular in Aruba?",
    "SpiderSynQuestion": "Which language is the most popular in Aruba?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\" ORDER BY Percentage DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What language is predominantly spoken in Aruba?",
    "SpiderSynQuestion": "What language is predominantly spoken in Aruba?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\" ORDER BY Percentage DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the population and life expectancies in Brazil?",
    "SpiderSynQuestion": "What are the population and lifespan in Brazil?",
    "query": "SELECT Population ,  LifeExpectancy FROM country WHERE Name  =  \"Brazil\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give me Brazil's population and life expectancies.",
    "SpiderSynQuestion": "Give me Brazil's population and lifespan.",
    "query": "SELECT Population ,  LifeExpectancy FROM country WHERE Name  =  \"Brazil\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the region and population of Angola?",
    "SpiderSynQuestion": "What are the region and number of people of Angola?",
    "query": "SELECT Population ,  Region FROM country WHERE Name  =  \"Angola\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What region does Angola belong to and what is its population?",
    "SpiderSynQuestion": "What region does Angola belong to and what is its number of residents?",
    "query": "SELECT Population ,  Region FROM country WHERE Name  =  \"Angola\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the average expected life expectancy for countries in the region of Central Africa?",
    "SpiderSynQuestion": "What is the average lifespan for countries in the region of Central Africa?",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region  =  \"Central Africa\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How long is the people\u2019s average life expectancy in Central Africa?",
    "SpiderSynQuestion": "How long is the people\u2019s average lifespan in Central Africa?",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region  =  \"Central Africa\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the name of country that has the shortest life expectancy in Asia?",
    "SpiderSynQuestion": "What is the name of nation that has the shortest lifespan in Asia?",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Asia\" ORDER BY LifeExpectancy LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the name of the country in Asia with the lowest life expectancy.",
    "SpiderSynQuestion": "Give the name of the State in Asia with the lowest lifespan.",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Asia\" ORDER BY LifeExpectancy LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total population and maximum GNP in Asia?",
    "SpiderSynQuestion": "What is the total number of people and maximum GNP in Asia?",
    "query": "SELECT sum(Population) ,  max(GNP) FROM country WHERE Continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many people live in Asia, and what is the largest GNP among them?",
    "SpiderSynQuestion": "How many people live in Asia, and what is the largest GNP among them?",
    "query": "SELECT sum(Population) ,  max(GNP) FROM country WHERE Continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the average life expectancy in African countries that are republics?",
    "SpiderSynQuestion": "What is the average lifespan in African nations that are republics?",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  \"Africa\" AND GovernmentForm  =  \"Republic\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the average life expectancy for countries in Africa which are republics?",
    "SpiderSynQuestion": "Give the average lifespan for nations in Africa which are republics?",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  \"Africa\" AND GovernmentForm  =  \"Republic\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total surface area of the continents Asia and Europe?",
    "SpiderSynQuestion": "What is the total territory of the continents Asia and Europe?",
    "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent  =  \"Asia\" OR Continent  =  \"Europe\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the total surface area covered by countries in Asia or Europe.",
    "SpiderSynQuestion": "Give the total territory covered by countries in Asia or Europe.",
    "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent  =  \"Asia\" OR Continent  =  \"Europe\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many people live in Gelderland district?",
    "SpiderSynQuestion": "How many people live in Gelderland district?",
    "query": "SELECT sum(Population) FROM city WHERE District  =  \"Gelderland\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total population of Gelderland district?",
    "SpiderSynQuestion": "What is the total number of residents of Gelderland district?",
    "query": "SELECT sum(Population) FROM city WHERE District  =  \"Gelderland\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the average GNP and total population in all nations whose government is US territory?",
    "SpiderSynQuestion": "What is the average GNP and total number of people in all States whose government is US territory?",
    "query": "SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  \"US Territory\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the mean GNP and total population of nations which are considered US territory.",
    "SpiderSynQuestion": "Give the mean GNP and total number of people of nations which are considered US territory.",
    "query": "SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  \"US Territory\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many unique languages are spoken in the world?",
    "SpiderSynQuestion": "How many unique languages are spoken in the world?",
    "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the number of distinct languages used around the world?",
    "SpiderSynQuestion": "What is the number of distinct languages used around the world?",
    "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many type of governments are in Africa?",
    "SpiderSynQuestion": "How many type of governments are in Africa?",
    "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent  =  \"Africa\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many different forms of governments are there in Africa?",
    "SpiderSynQuestion": "How many different types of governments are there in Africa?",
    "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent  =  \"Africa\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total number of languages used in Aruba?",
    "SpiderSynQuestion": "What is the total number of languages used in Aruba?",
    "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many languages are spoken in Aruba?",
    "SpiderSynQuestion": "How many languages are spoken in Aruba?",
    "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many official languages does Afghanistan have?",
    "SpiderSynQuestion": "How many official languages does Afghanistan have?",
    "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Afghanistan\" AND IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many official languages are spoken in Afghanistan?",
    "SpiderSynQuestion": "How many official languages are spoken in Afghanistan?",
    "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Afghanistan\" AND IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is name of the country that speaks the largest number of languages?",
    "SpiderSynQuestion": "What is name of the nation that speaks the largest number of languages?",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the name of the nation that uses the greatest amount of languages.",
    "SpiderSynQuestion": "Give the name of the State that uses the greatest amount of languages.",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which continent has the most diverse languages?",
    "SpiderSynQuestion": "Which continent has the most diverse languages?",
    "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which continent speaks the most languages?",
    "SpiderSynQuestion": "Which continent speaks the most languages?",
    "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many countries speak both English and Dutch?",
    "SpiderSynQuestion": "How many States speak both English and Dutch?",
    "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Dutch\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the number of nations that use English and Dutch?",
    "SpiderSynQuestion": "What is the number of countries that use English and Dutch?",
    "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Dutch\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of nations speak both English and French?",
    "SpiderSynQuestion": "What are the names of States speak both English and French?",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"French\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the names of nations that speak both English and French.",
    "SpiderSynQuestion": "Give the names of countries that speak both English and French.",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"French\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of nations where both English and French are official languages?",
    "SpiderSynQuestion": "What are the names of States where both English and French are official languages?",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND T2.IsOfficial  =  \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"French\" AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the names of countries with English and French as official languages.",
    "SpiderSynQuestion": "Give the names of nations with English and French as official languages.",
    "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND T2.IsOfficial  =  \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"French\" AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the number of distinct continents where Chinese is spoken?",
    "SpiderSynQuestion": "What is the number of distinct continents where Chinese is spoken?",
    "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Chinese\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many continents speak Chinese?",
    "SpiderSynQuestion": "How many continents speak Chinese?",
    "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Chinese\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the regions that use English or Dutch?",
    "SpiderSynQuestion": "What are the regions that use English or Dutch?",
    "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" OR T2.Language  =  \"Dutch\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which regions speak Dutch or English?",
    "SpiderSynQuestion": "Which regions speak Dutch or English?",
    "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" OR T2.Language  =  \"Dutch\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the countries where either English or Dutch is the official language?",
    "SpiderSynQuestion": "What are the nations where either English or Dutch is the official language?",
    "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND IsOfficial  =  \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Dutch\" AND IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which countries have either English or Dutch as an official language?",
    "SpiderSynQuestion": "Which nations have either English or Dutch as an official language?",
    "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND IsOfficial  =  \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"Dutch\" AND IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which language is the most popular on the Asian continent?",
    "SpiderSynQuestion": "Which language is the most popular on the Asian continent?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the language that is used by the largest number of Asian nations?",
    "SpiderSynQuestion": "What is the language that is used by the largest number of Asian nations?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which languages are spoken by only one country in republic governments?",
    "SpiderSynQuestion": "Which languages are spoken by only one country in republic governments?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  \"Republic\" GROUP BY T2.Language HAVING COUNT(*)  =  1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What languages are only used by a single country with a republic government?",
    "SpiderSynQuestion": "What languages are only used by a single country with a republic government?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  \"Republic\" GROUP BY T2.Language HAVING COUNT(*)  =  1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Find the city with the largest population that uses English.",
    "SpiderSynQuestion": "Find the town with the largest number of people that uses English.",
    "query": "SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  \"English\" ORDER BY T1.Population DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the most populace city that speaks English?",
    "SpiderSynQuestion": "What is the most populace city that speaks English?",
    "query": "SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  \"English\" ORDER BY T1.Population DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Find the name, population and expected life length of asian country with the largest area?",
    "SpiderSynQuestion": "Find the name, populace and expected life length of asian country with the largest area?",
    "query": "SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the name, population, and life expectancy of the largest Asian country by land?",
    "SpiderSynQuestion": "What are the name, number of residents, and lifespan of the largest Asian country by land?",
    "query": "SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is average life expectancy in the countries where English is not the official language?",
    "SpiderSynQuestion": "What is average lifespan in the nations where English is not the official language?",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND T2.IsOfficial  =  \"T\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the mean life expectancy of countries in which English is not the official language.",
    "SpiderSynQuestion": "Give the mean lifespan of nations in which English is not the official language.",
    "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\" AND T2.IsOfficial  =  \"T\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total number of people living in the nations that do not use English?",
    "SpiderSynQuestion": "What is the total number of people living in the nations that do not use English?",
    "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many people live in countries that do not speak English?",
    "SpiderSynQuestion": "How many people live in nations that do not speak English?",
    "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the official language spoken in the country whose head of state is Beatrix?",
    "SpiderSynQuestion": "What is the official language spoken in the country whose head of state is Beatrix?",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  \"Beatrix\" AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the official language used in the country the name of whose head of state is Beatrix.",
    "SpiderSynQuestion": "What is the official language used in the country the name of whose leader of country is Beatrix.",
    "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  \"Beatrix\" AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total number of unique official languages spoken in the countries that are founded before 1930?",
    "SpiderSynQuestion": "What is the total number of unique official languages spoken in the nations that are founded before 1930?",
    "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "For the countries founded before 1930, what is the total number of distinct official languages?",
    "SpiderSynQuestion": "For the nations founded before 1930, what is the total number of distinct official languages?",
    "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  \"T\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the countries that have greater surface area than any country in Europe?",
    "SpiderSynQuestion": "What are the nations that have greater territory than any country in Europe?",
    "query": "SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  \"Europe\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which countries have greater area than that of any country in Europe?",
    "SpiderSynQuestion": "Which countries have greater territory than that of any country in Europe?",
    "query": "SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  \"Europe\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the African countries that have a  population less than any country in Asia?",
    "SpiderSynQuestion": "What are the African nations that have a  number of residents less than any country in Asia?",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Africa\"  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  \"Asia\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which African countries have a smaller population than that of any country in Asia?",
    "SpiderSynQuestion": "Which African nations have a smaller number of residents than that of any country in Asia?",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Africa\"  AND population  <  (SELECT min(population) FROM country WHERE Continent  =  \"Asia\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which Asian countries have a population that is larger than any country in Africa?",
    "SpiderSynQuestion": "Which Asian nations have a number of residents that is larger than any country in Africa?",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Asia\"  AND population  >  (SELECT max(population) FROM country WHERE Continent  =  \"Africa\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the Asian countries which have a population larger than that of any country in Africa?",
    "SpiderSynQuestion": "What are the Asian States which have a number of residents larger than that of any country in Africa?",
    "query": "SELECT Name FROM country WHERE Continent  =  \"Asia\"  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  \"Africa\")"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the country codes for countries that do not speak English?",
    "SpiderSynQuestion": "What are the nation abbreviations for nations that do not speak English?",
    "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the country codes for countries that do not speak English.",
    "SpiderSynQuestion": "Return the State abbreviations for States that do not speak English.",
    "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the country codes of countries where people use languages other than English?",
    "SpiderSynQuestion": "What are the nation abbreviations of nations where people use languages other than English?",
    "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the country codes for countries in which people speak langauges that are not English.",
    "SpiderSynQuestion": "Give the nation abbreviations for nations in which people speak langauges that are not English.",
    "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the codes of the countries that do not speak English and whose government forms are not Republic?",
    "SpiderSynQuestion": "What are the abbreviations of the nations that do not speak English and whose government types are not Republic?",
    "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the codes of countries that do not speak English and do not have Republics for governments.",
    "SpiderSynQuestion": "Return the abbreviations of States that do not speak English and do not have Republics for governments.",
    "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which cities are in European countries where English is not the official language?",
    "SpiderSynQuestion": "Which towns are in European countries where English is not the official language?",
    "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English')"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of cities in Europe for which English is not the official language?",
    "SpiderSynQuestion": "What are the names of towns in Europe for which English is not the official language?",
    "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English')"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Whic`h unique cities are in  Asian countries where Chinese is the official language?",
    "SpiderSynQuestion": "Whic`h unique towns are in  Asian States where Chinese is the official language?",
    "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode JOIN city AS T3 ON T1.Code  =  T3.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the different names of cities that are in Asia and for which Chinese is the official language.",
    "SpiderSynQuestion": "Return the different names of towns that are in Asia and for which Chinese is the official language.",
    "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode JOIN city AS T3 ON T1.Code  =  T3.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the name, independence year, and surface area of the country with the smallest population?",
    "SpiderSynQuestion": "What are the name, founded year, and territory of the country with the smallest number of residents?",
    "query": "SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the name, year of independence, and surface area of the country that has the lowest population.",
    "SpiderSynQuestion": "Give the name, year of founded, and territory of the country that has the lowest number of people.",
    "query": "SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the population, name and leader of the country with the largest area?",
    "SpiderSynQuestion": "What are the number of residents, name and leader of the country with the largest area?",
    "query": "SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the name, population, and head of state for the country that has the largest area.",
    "SpiderSynQuestion": "Give the name, number of residents, and leader of country for the country that has the largest territory.",
    "query": "SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.",
    "SpiderSynQuestion": "Return the nation name and the numbers of languages spoken for each country that speaks at least 3 languages.",
    "query": "SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?",
    "SpiderSynQuestion": "What are the names of nations that speak more than 2 languages, as well as how many languages they speak?",
    "query": "SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Find the number of cities in each district whose population is greater than the average population of cities?",
    "SpiderSynQuestion": "Find the number of towns in each district whose number of residents is greater than the average population of towns?",
    "query": "SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "How many cities in each district have a population that is above the average population across all cities?",
    "SpiderSynQuestion": "How many towns in each district have a population that is above the average number of residents across all towns?",
    "query": "SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.",
    "SpiderSynQuestion": "Find the government type name and total number of residents for each government type whose average lifespan is longer than 72.",
    "query": "SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?",
    "SpiderSynQuestion": "What are the different government types and what is the total number of residents of each for government types that have an average lifespan greater than 72?",
    "query": "SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?",
    "SpiderSynQuestion": "Find the average lifespan and total number of people for each continent where the average lifespan is shorter than 72?",
    "query": "SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?",
    "SpiderSynQuestion": "What are the different continents and the total number of people and average lifespan corresponding to each, for continents that have an average lifespan less than 72?",
    "query": "SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names and areas of countries with the top 5 largest area?",
    "SpiderSynQuestion": "What are the names and areas of States with the top 5 largest territory?",
    "query": "SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the names and surface areas of the 5 largest countries.",
    "SpiderSynQuestion": "Return the names and territory of the 5 largest countries.",
    "query": "SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are names of countries with the top 3 largest population?",
    "SpiderSynQuestion": "What are names of nations with the top 3 largest number of people?",
    "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the names of the 3 most populated countries.",
    "SpiderSynQuestion": "Return the names of the 3 most populated countries.",
    "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of the nations with the 3 lowest populations?",
    "SpiderSynQuestion": "What are the names of the countries with the 3 lowest number of peoples?",
    "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the names of the 3 countries with the fewest people.",
    "SpiderSynQuestion": "Return the names of the 3 nations with the fewest people.",
    "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "how many countries are in Asia?",
    "SpiderSynQuestion": "how many nations are in Asia?",
    "query": "SELECT count(*) FROM country WHERE continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Count the number of countries in Asia.",
    "SpiderSynQuestion": "Count the number of nations in Asia.",
    "query": "SELECT count(*) FROM country WHERE continent  =  \"Asia\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the names of the countries that are in the continent of Europe and have a population of 80000?",
    "SpiderSynQuestion": "What are the names of the States that are in the continent of Europe and have a number of people of 80000?",
    "query": "SELECT Name FROM country WHERE continent  =  \"Europe\" AND Population  =  \"80000\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the names of countries that are in Europe and have a population equal to 80000.",
    "SpiderSynQuestion": "Give the names of nations that are in Europe and have a number of people equal to 80000.",
    "query": "SELECT Name FROM country WHERE continent  =  \"Europe\" AND Population  =  \"80000\""
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000\uff1f",
    "SpiderSynQuestion": "What is the total number of people and average territory of countries in the continent of North America whose territory is bigger than 3000\uff1f",
    "query": "SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  \"North America\" AND SurfaceArea  >  3000"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000.",
    "SpiderSynQuestion": "Give the total number of people and average territory corresponding to countries in North America that have a territory greater than 3000.",
    "query": "SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  \"North America\" AND SurfaceArea  >  3000"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the cities whose population is between 160000 and 900000?",
    "SpiderSynQuestion": "What are the towns whose number of residents is between 160000 and 900000?",
    "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the names of cities that have a population between 160000 and 900000.",
    "SpiderSynQuestion": "Return the names of towns that have a number of people between 160000 and 900000.",
    "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Which language is spoken by the largest number of countries?",
    "SpiderSynQuestion": "Which language is spoken by the largest number of nations?",
    "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Give the language that is spoken in the most countries.",
    "SpiderSynQuestion": "Give the language that is spoken in the most nations.",
    "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the language spoken by the largest percentage of people in each country?",
    "SpiderSynQuestion": "What is the language spoken by most people in each State?",
    "query": "SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?",
    "SpiderSynQuestion": "What are the nation abbreviations of the different nations, and what are the languages spoken by the most people for each?",
    "query": "SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What is the total number of countries where Spanish is spoken by the largest percentage of people?",
    "SpiderSynQuestion": "What is the total number of nations where Spanish is spoken by most people?",
    "query": "SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  \"Spanish\" GROUP BY CountryCode"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Count the number of countries for which Spanish is the predominantly spoken language.",
    "SpiderSynQuestion": "Count the number of nations for which Spanish is the predominantly spoken language.",
    "query": "SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  \"Spanish\" GROUP BY CountryCode"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "What are the codes of countries where Spanish is spoken by the largest percentage of people?",
    "SpiderSynQuestion": "What are the codes of nations where Spanish is spoken by most people?",
    "query": "SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  \"Spanish\" GROUP BY CountryCode"
  },
  {
    "db_id": "world_1",
    "SpiderQuestion": "Return the codes of countries for which Spanish is the predominantly spoken language.",
    "SpiderSynQuestion": "Return the codes of States for which Spanish is the predominantly spoken language.",
    "query": "SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  \"Spanish\" GROUP BY CountryCode"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "How many conductors are there?",
    "SpiderSynQuestion": "How many directors are there?",
    "query": "SELECT count(*) FROM conductor"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Count the number of conductors.",
    "SpiderSynQuestion": "Count the number of directors.",
    "query": "SELECT count(*) FROM conductor"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "List the names of conductors in ascending order of age.",
    "SpiderSynQuestion": "List the names of directors in ascending order of age.",
    "query": "SELECT Name FROM conductor ORDER BY Age ASC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors, ordered by age?",
    "SpiderSynQuestion": "What are the names of directors, ordered by age?",
    "query": "SELECT Name FROM conductor ORDER BY Age ASC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors whose nationalities are not \"USA\"?",
    "SpiderSynQuestion": "What are the names of directors whose countries are not \"USA\"?",
    "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Return the names of conductors that do not have the nationality \"USA\".",
    "SpiderSynQuestion": "Return the names of directors that do not have the country \"USA\".",
    "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the record companies of orchestras in descending order of years in which they were founded?",
    "SpiderSynQuestion": "What are the record enterprise of ensembles in descending order of years in which they were set up?",
    "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Return the record companies of orchestras, sorted descending by the years in which they were founded.",
    "SpiderSynQuestion": "Return the record enterprise of ensembles, sorted descending by the years in which they were set up.",
    "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What is the average attendance of shows?",
    "SpiderSynQuestion": "What is the average guest of shows?",
    "query": "SELECT avg(Attendance) FROM SHOW"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Return the average attendance across all shows.",
    "SpiderSynQuestion": "Return the average guest across all shows.",
    "query": "SELECT avg(Attendance) FROM SHOW"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the maximum and minimum share of performances whose type is not \"Live final\".",
    "SpiderSynQuestion": "What are the maximum and minimum share of performances whose type is not \"Live final\".",
    "query": "SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != \"Live final\""
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".",
    "SpiderSynQuestion": "Return the maximum and minimum shares for performance that do not have the type \"Live final\".",
    "query": "SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != \"Live final\""
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "How many different nationalities do conductors have?",
    "SpiderSynQuestion": "How many different countries do directors have?",
    "query": "SELECT count(DISTINCT Nationality) FROM conductor"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Count the number of different nationalities of conductors.",
    "SpiderSynQuestion": "Count the number of different countries of directors.",
    "query": "SELECT count(DISTINCT Nationality) FROM conductor"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "List names of conductors in descending order of years of work.",
    "SpiderSynQuestion": "List names of directors in descending order of time of as a director.",
    "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors, sorted descending by the number of years they have worked?",
    "SpiderSynQuestion": "What are the names of directors, sorted descending by the time they became a director?",
    "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "List the name of the conductor with the most years of work.",
    "SpiderSynQuestion": "List the name of the director with the most years of as a director.",
    "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What is the name of the conductor who has worked the greatest number of years?",
    "SpiderSynQuestion": "What is the name of the director who has worked the greatest number of years?",
    "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Show the names of conductors and the orchestras they have conducted.",
    "SpiderSynQuestion": "Show the names of directors and the ensembles they have directed.",
    "query": "SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors as well as the corresonding orchestras that they have conducted?",
    "SpiderSynQuestion": "What are the names of directors as well as the corresonding ensembles that they have directed?",
    "query": "SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Show the names of conductors that have conducted more than one orchestras.",
    "SpiderSynQuestion": "Show the names of directors that have conducted more than one ensembles.",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors who have conducted at more than one orchestra?",
    "SpiderSynQuestion": "What are the names of directors who have directed at more than one ensemble?",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Show the name of the conductor that has conducted the most number of orchestras.",
    "SpiderSynQuestion": "Show the name of the director that has directed the most number of ensembles.",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What is the name of the conductor who has conducted the most orchestras?",
    "SpiderSynQuestion": "What is the name of the director who has directed the most ensembles?",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Please show the name of the conductor that has conducted orchestras founded after 2008.",
    "SpiderSynQuestion": "Please show the name of the director that has directed ensembles set up after 2008.",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the names of conductors who have conducted orchestras founded after the year 2008?",
    "SpiderSynQuestion": "What are the names of directors who have conducted ensembles set up after the year 2008?",
    "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Please show the different record companies and the corresponding number of orchestras.",
    "SpiderSynQuestion": "Please show the different record enterprise and the corresponding number of ensembles.",
    "query": "SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "How many orchestras does each record company manage?",
    "SpiderSynQuestion": "How many ensembles does each enterprise manage?",
    "query": "SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Please show the record formats of orchestras in ascending order of count.",
    "SpiderSynQuestion": "Please show the record type of ensembles in ascending order of count.",
    "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the major record formats of orchestras, sorted by their frequency?",
    "SpiderSynQuestion": "What are the major record formats of ensembles, sorted by their frequency?",
    "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "List the record company shared by the most number of orchestras.",
    "SpiderSynQuestion": "List the record enterprise shared by the most number of ensembles.",
    "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What is the record company used by the greatest number of orchestras?",
    "SpiderSynQuestion": "What is the record enterprise used by the greatest number of ensembles?",
    "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "List the names of orchestras that have no performance.",
    "SpiderSynQuestion": "List the names of ensembles that have no performance.",
    "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the orchestras that do not have any performances?",
    "SpiderSynQuestion": "What are the ensembles that do not have any performance?",
    "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Show the record companies shared by orchestras founded before 2003 and after 2003.",
    "SpiderSynQuestion": "Show the record enterprises shared by ensembles founded before 2003 and after 2003.",
    "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?",
    "SpiderSynQuestion": "What are the record enterprises that are used by both ensembles founded before 2003 and those founded after 2003?",
    "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".",
    "SpiderSynQuestion": "Find the number of ensembles whose record type is \"CD\" or \"DVD\".",
    "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  \"CD\" OR Major_Record_Format  =  \"DVD\""
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Count the number of orchestras that have CD or DVD as their record format.",
    "SpiderSynQuestion": "Count the number of ensembles that have CD or DVD as their record type.",
    "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  \"CD\" OR Major_Record_Format  =  \"DVD\""
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "Show the years in which orchestras that have given more than one performance are founded.",
    "SpiderSynQuestion": "Show the years in which ensembles that have given more than one performance are set up.",
    "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "orchestra",
    "SpiderQuestion": "What are years of founding for orchestras that have had more than a single performance?",
    "SpiderSynQuestion": "What are years of seting up for ensembles that have had more than a single performance?",
    "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many high schoolers are there?",
    "SpiderSynQuestion": "How many students are there?",
    "query": "SELECT count(*) FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Count the number of high schoolers.",
    "SpiderSynQuestion": "Count the number of students.",
    "query": "SELECT count(*) FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names and grades of each high schooler.",
    "SpiderSynQuestion": "Show the names and grades of each student.",
    "query": "SELECT name ,  grade FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names and grades for each high schooler?",
    "SpiderSynQuestion": "What are the names and grades for each student?",
    "query": "SELECT name ,  grade FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show all the grades of the high schoolers.",
    "SpiderSynQuestion": "Show all the grades of the students.",
    "query": "SELECT grade FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is the grade of each high schooler?",
    "SpiderSynQuestion": "What is the grade of each student?",
    "query": "SELECT grade FROM Highschooler"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What grade is Kyle in?",
    "SpiderSynQuestion": "What grade is Kyle in?",
    "query": "SELECT grade FROM Highschooler WHERE name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Return the grade for the high schooler named Kyle.",
    "SpiderSynQuestion": "Return the grade for the student named Kyle.",
    "query": "SELECT grade FROM Highschooler WHERE name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of all high schoolers in grade 10.",
    "SpiderSynQuestion": "Show the names of all students in grade 10.",
    "query": "SELECT name FROM Highschooler WHERE grade  =  10"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of all high schoolers in grade 10?",
    "SpiderSynQuestion": "What are the names of all students in grade 10?",
    "query": "SELECT name FROM Highschooler WHERE grade  =  10"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the ID of the high schooler named Kyle.",
    "SpiderSynQuestion": "Show the ID of the student named Kyle.",
    "query": "SELECT ID FROM Highschooler WHERE name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is Kyle's id?",
    "SpiderSynQuestion": "What is Kyle's id?",
    "query": "SELECT ID FROM Highschooler WHERE name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many high schoolers are there in grade 9 or 10?",
    "SpiderSynQuestion": "How many students are there in grade 9 or 10?",
    "query": "SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Count the number of high schoolers in grades 9 or 10.",
    "SpiderSynQuestion": "Count the number of students in grades 9 or 10.",
    "query": "SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the number of high schoolers for each grade.",
    "SpiderSynQuestion": "Show the number of students for each grade.",
    "query": "SELECT grade ,  count(*) FROM Highschooler GROUP BY grade"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many high schoolers are in each grade?",
    "SpiderSynQuestion": "How many students are in each grade?",
    "query": "SELECT grade ,  count(*) FROM Highschooler GROUP BY grade"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Which grade has the most high schoolers?",
    "SpiderSynQuestion": "Which grade has the most students?",
    "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Return the grade that has the greatest number of high schoolers.",
    "SpiderSynQuestion": "Return the grade that has the greatest number of students.",
    "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show me all grades that have at least 4 students.",
    "SpiderSynQuestion": "Show me all grades that have at least 4 students.",
    "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Which grades have 4 or more high schoolers?",
    "SpiderSynQuestion": "Which grades have 4 or more students?",
    "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the student IDs and numbers of friends corresponding to each.",
    "SpiderSynQuestion": "Show the student IDs and numbers of friends corresponding to each.",
    "query": "SELECT student_id ,  count(*) FROM Friend GROUP BY student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many friends does each student have?",
    "SpiderSynQuestion": "How many friends does each student have?",
    "query": "SELECT student_id ,  count(*) FROM Friend GROUP BY student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of high school students and their corresponding number of friends.",
    "SpiderSynQuestion": "Show the names of students and their corresponding number of friends.",
    "query": "SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of the high schoolers and how many friends does each have?",
    "SpiderSynQuestion": "What are the names of the students and how many friends does each have?",
    "query": "SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is the name of the high schooler who has the greatest number of friends?",
    "SpiderSynQuestion": "What is the name of the student who has the greatest number of friends?",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Return the name of the high school student with the most friends.",
    "SpiderSynQuestion": "Return the name of the student with the most friends.",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of high schoolers who have at least 3 friends.",
    "SpiderSynQuestion": "Show the names of students who have at least 3 friends.",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of high schoolers who have 3 or more friends?",
    "SpiderSynQuestion": "What are the names of students who have 3 or more friends?",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of all of the high schooler Kyle's friends.",
    "SpiderSynQuestion": "Show the names of all of the student Kyle's friends.",
    "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Return the names of friends of the high school student Kyle.",
    "SpiderSynQuestion": "Return the names of friends of the student Kyle.",
    "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many friends does the high school student Kyle have?",
    "SpiderSynQuestion": "How many friends does the student Kyle have?",
    "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Count the number of friends Kyle has.",
    "SpiderSynQuestion": "Count the number of friends Kyle has.",
    "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show ids of all students who do not have any friends.",
    "SpiderSynQuestion": "Show ids of all students who do not have any friends.",
    "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the ids of high school students who do not have friends?",
    "SpiderSynQuestion": "What are the ids of students who do not have friends?",
    "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show names of all high school students who do not have any friends.",
    "SpiderSynQuestion": "Show names of all students who do not have any friends.",
    "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of students who have no friends?",
    "SpiderSynQuestion": "What are the names of students who have no friends?",
    "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the ids of high schoolers who have friends and are also liked by someone else.",
    "SpiderSynQuestion": "Show the ids of students who have friends and are also liked by someone else.",
    "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the ids of students who both have friends and are liked?",
    "SpiderSynQuestion": "What are the ids of students who both have friends and are liked?",
    "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show name of all students who have some friends and also are liked by someone else.",
    "SpiderSynQuestion": "Show name of all students who have some friends and also are liked by someone else.",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of high schoolers who both have friends and are liked?",
    "SpiderSynQuestion": "What are the names of students who both have friends and are liked?",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Count the number of likes for each student id.",
    "SpiderSynQuestion": "Count the number of likes for each student id.",
    "query": "SELECT student_id ,  count(*) FROM Likes GROUP BY student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many likes correspond to each student id?",
    "SpiderSynQuestion": "How many likes correspond to each student id?",
    "query": "SELECT student_id ,  count(*) FROM Likes GROUP BY student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of high schoolers who have likes, and numbers of likes for each.",
    "SpiderSynQuestion": "Show the names of students who have likes, and numbers of likes for each.",
    "query": "SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of high schoolers who have likes, and how many likes does each have?",
    "SpiderSynQuestion": "What are the names of students who have likes, and how many likes does each have?",
    "query": "SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is the name of the high schooler who has the greatest number of likes?",
    "SpiderSynQuestion": "What is the name of the student who has the greatest number of likes?",
    "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Give the name of the student with the most likes.",
    "SpiderSynQuestion": "Give the name of the student with the most likes.",
    "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of students who have at least 2 likes.",
    "SpiderSynQuestion": "Show the names of students who have at least 2 likes.",
    "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of students who have 2 or more likes?",
    "SpiderSynQuestion": "What are the names of students who have 2 or more interests?",
    "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Show the names of students who have a grade higher than 5 and have at least 2 friends.",
    "SpiderSynQuestion": "Show the names of students who have a grade higher than 5 and have at least 2 friends.",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?",
    "SpiderSynQuestion": "What are the names of students who have a grade of over 5 and have 2 or more friends?",
    "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "How many likes does Kyle have?",
    "SpiderSynQuestion": "How many interests does Kyle have?",
    "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Return the number of likes that the high schooler named Kyle has.",
    "SpiderSynQuestion": "Return the number of interests that the student named Kyle has.",
    "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  \"Kyle\""
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Find the average grade of all students who have some friends.",
    "SpiderSynQuestion": "Find the average grade of all students who have some friends.",
    "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is the average grade of students who have friends?",
    "SpiderSynQuestion": "What is the average grade of students who have friends?",
    "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "Find the minimum grade of students who have no friends.",
    "SpiderSynQuestion": "Find the minimum grade of students who have no friends.",
    "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)"
  },
  {
    "db_id": "network_1",
    "SpiderQuestion": "What is the lowest grade of students who do not have any friends?",
    "SpiderSynQuestion": "What is the lowest grade of students who do not have any friends?",
    "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which states have both owners and professionals living there?",
    "SpiderSynQuestion": "Which states have both guardians and veterinarians living there?",
    "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the states where both owners and professionals live.",
    "SpiderSynQuestion": "Find the states where both guardians and veterinarians live.",
    "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the average age of the dogs who have gone through any treatments?",
    "SpiderSynQuestion": "What is the average age of the dogs who have gone through any medical care?",
    "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the average age of the dogs who went through treatments.",
    "SpiderSynQuestion": "Find the average age of the dogs who went through health care.",
    "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.",
    "SpiderSynQuestion": "Which veterinarians live in the state of Indiana or have done more than 2 medical cares? List his or her id, family name and cell phone.",
    "query": "SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.",
    "SpiderSynQuestion": "Find the id, last name and cell phone of the veterinarians who live in the state of Indiana or have performed more than two health-cares.",
    "query": "SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which dogs have not cost their owner more than 1000 for treatment? List the dog names.",
    "SpiderSynQuestion": "Which dogs have not cost their guardian more than 1000 for health-care? List the dog names.",
    "query": "SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment)  >  1000 )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the names of the dogs for which the owner spent more than 1000 for treatment?",
    "SpiderSynQuestion": "What are the names of the dogs for which the guardian spent more than 1000 for health-care?",
    "query": "SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment)  >  1000 )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which first names are used for professionals or owners but are not used as dog names?",
    "SpiderSynQuestion": "Which first names are used for veterinarians or guardians but are not used as dog names?",
    "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the first names that are used for professionals or owners but are not used as dog names.",
    "SpiderSynQuestion": "Find the first names that are used for veterinarians or guardians but are not used as dog names.",
    "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.",
    "SpiderSynQuestion": "Which veterinarian did not operate any medical care on dogs? List the veterinarian's id, role and email.",
    "query": "SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.",
    "SpiderSynQuestion": "Give me the id, role and email of the veterinarians who did not perform any health-care on dogs.",
    "query": "SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which owner owns the most dogs? List the owner id, first name and last name.",
    "SpiderSynQuestion": "Which people owns the most dogs? List the people id, given name and family name.",
    "query": "SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Return the owner id, first name and last name of the owner who has the most dogs.",
    "SpiderSynQuestion": "Return the people id, given name and family name of the guardian who has the most dogs.",
    "query": "SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professionals have done at least two treatments? List the professional's id, role, and first name.",
    "SpiderSynQuestion": "Which veterinarians have done at least two medical cares? List the veterinarian's id, role, and given name.",
    "query": "SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the id, role, and first name of the professionals who have performed two or more treatments?",
    "SpiderSynQuestion": "What are the id, role, and given name of the veterinarians who have performed two or more health-cares?",
    "query": "SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the name of the breed with the most dogs?",
    "SpiderSynQuestion": "What is the name of the breed with the most puppies?",
    "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which breed do the most dogs have? Give me the breed name.",
    "SpiderSynQuestion": "Which breed do the most puppies have? Give me the breed name.",
    "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.",
    "SpiderSynQuestion": "Which guardian has paid for the most health cares on his or her dogs? List the guardian id and family name.",
    "query": "SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.",
    "SpiderSynQuestion": "Tell me the guardian id and family name of the guardian who spent the most on treatments of his or her puppies.",
    "query": "SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the description of the treatment type that costs the least money in total?",
    "SpiderSynQuestion": "What is the describing details of the health-care type that costs the least money in total?",
    "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Give me the description of the treatment type whose total cost is the lowest.",
    "SpiderSynQuestion": "Give me the describing details of the health-care whose total cost is the lowest.",
    "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.",
    "SpiderSynQuestion": "Which guardian has paid the largest amount of money in total for their puppies? Show the guardian id and zip code.",
    "query": "SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.",
    "SpiderSynQuestion": "Find the guardian id and zip code of the guardian who spent the most money in total for his or her puppies.",
    "query": "SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professionals have done at least two types of treatments? List the professional id and cell phone.",
    "SpiderSynQuestion": "Which veterinarians have done at least two types of health-care? List the veterinarian id and cell phone.",
    "query": "SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the id and cell phone of the professionals who operate two or more types of treatments.",
    "SpiderSynQuestion": "Find the id and cell phone of the veterinarians who operate two or more types of health-care.",
    "query": "SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the first name and last name of the professionals who have done treatment with cost below average?",
    "SpiderSynQuestion": "What are the first name and family name of the veterinarians who have done medical care with cost below average?",
    "query": "SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN  Treatments AS T2 on T2.professional_id = T1.professional_id WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.",
    "SpiderSynQuestion": "Which veterinarians have operated a medical care that costs less than the average? Give me theor given names and family names.",
    "query": "SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 on T2.professional_id = T1.professional_id WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the date of each treatment, together with the first name of the professional who operated it.",
    "SpiderSynQuestion": "List the date of each medical care, together with the given name of the veterinarian who operated it.",
    "query": "SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the date and the operating professional's first name of each treatment?",
    "SpiderSynQuestion": "What are the date and the operating veterinarian's given name of each medical care?",
    "query": "SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the cost of each treatment and the corresponding treatment type description.",
    "SpiderSynQuestion": "List the cost of each health-care and the corresponding health-care type describing details.",
    "query": "SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the cost and treatment type description of each treatment?",
    "SpiderSynQuestion": "What are the cost and health-care type describing content of each health-care?",
    "query": "SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List each owner's first name, last name, and the size of his for her dog.",
    "SpiderSynQuestion": "List each guardian's first name, last name, and the size of his for her dog.",
    "query": "SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are each owner's first name, last name, and the size of their dog?",
    "SpiderSynQuestion": "What are each guardians's first name, last name, and the size of their dog?",
    "query": "SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List pairs of the owner's first name and the dogs's name.",
    "SpiderSynQuestion": "List pairs of the guardians's given name and the puppies's name.",
    "query": "SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are each owner's first name and their dogs's name?",
    "SpiderSynQuestion": "What are each guardians's given name and their puppies's name?",
    "query": "SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the names of the dogs of the rarest breed and the treatment dates of them.",
    "SpiderSynQuestion": "List the names of the puppies of the rarest breed and the health care dates of them.",
    "query": "SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which dogs are of the rarest breed? Show their names and treatment dates.",
    "SpiderSynQuestion": "Which dogs are of the rarest breed? Show their names and medical care dates.",
    "query": "SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.",
    "SpiderSynQuestion": "Which dogs are owned by someone who lives in Virginia? List the guardian's first name and the dog's name.",
    "query": "SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the first names of owners living in Virginia and the names of dogs they own.",
    "SpiderSynQuestion": "Find the given names of guardians living in Virginia and the names of dogs they own.",
    "query": "SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the arriving date and the departing date of the dogs who have gone through a treatment?",
    "SpiderSynQuestion": "What are the arriving and leaving date of the puppies who have gone through a medical care?",
    "query": "SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the arriving date and the departing date of the dogs that received a treatment.",
    "SpiderSynQuestion": "Find the arriving and leaving date of the puppies that received a health care.",
    "query": "SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the last name of the owner owning the youngest dog.",
    "SpiderSynQuestion": "List the family name of the guardian owning the youngest puppy.",
    "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Who owns the youngest dog? Give me his or her last name.",
    "SpiderSynQuestion": "Who owns the youngest puppy? Give me his or her last name.",
    "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.",
    "SpiderSynQuestion": "List the emails of the veterinarians who live in the state of Hawaii or the state of Wisconsin.",
    "query": "SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?",
    "SpiderSynQuestion": "What are the emails of the veterinarians living in either the state of Hawaii or the state of Wisconsin?",
    "query": "SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the arriving date and the departing date of all the dogs?",
    "SpiderSynQuestion": "What are the arriving and leaving date of all the puppies?",
    "query": "SELECT date_arrived ,  date_departed FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the arrival date and the departure date for all the dogs.",
    "SpiderSynQuestion": "List the arriving and leaving date for all the puppies.",
    "query": "SELECT date_arrived ,  date_departed FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many dogs went through any treatments?",
    "SpiderSynQuestion": "How many puppies went through any health cares?",
    "query": "SELECT count(DISTINCT dog_id) FROM Treatments"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Count the number of dogs that went through a treatment.",
    "SpiderSynQuestion": "Count the number of puppies that went through a health care.",
    "query": "SELECT count(DISTINCT dog_id) FROM Treatments"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many professionals have performed any treatment to dogs?",
    "SpiderSynQuestion": "How many veterinarians have performed any health care to puppies?",
    "query": "SELECT count(DISTINCT professional_id) FROM Treatments"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the number of professionals who have ever treated dogs.",
    "SpiderSynQuestion": "Find the number of veterinarians who have ever treated puppies.",
    "query": "SELECT count(DISTINCT professional_id) FROM Treatments"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.",
    "SpiderSynQuestion": "Which veterinarians live in a city containing the substring 'West'? List his or her role, street, town and state.",
    "query": "SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.",
    "SpiderSynQuestion": "Find the role, street, town and state of the veterinarians living in a town that contains the substring 'West'.",
    "query": "SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.",
    "SpiderSynQuestion": "Which guardians live in the state whose name contains the substring 'North'? List his given name, family name and email.",
    "query": "SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.",
    "SpiderSynQuestion": "Return the given name, family name and email of the guardians living in a state whose name contains the substring 'North'.",
    "query": "SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many dogs have an age below the average?",
    "SpiderSynQuestion": "How many puppies have an age below the average?",
    "query": "SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Count the number of dogs of an age below the average.",
    "SpiderSynQuestion": "Count the number of puppies of an age below the average.",
    "query": "SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How much does the most recent treatment cost?",
    "SpiderSynQuestion": "How much does the most recent health-care cost?",
    "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Show me the cost of the most recently performed treatment.",
    "SpiderSynQuestion": "Show me the cost of the most recently performed medical care.",
    "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many dogs have not gone through any treatment?",
    "SpiderSynQuestion": "How many puppies have not gone through any medical care?",
    "query": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Tell me the number of dogs that have received any treatment.",
    "SpiderSynQuestion": "Tell me the number of puppies that have received any health-care.",
    "query": "SELECT count(*) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many owners temporarily do not have any dogs?",
    "SpiderSynQuestion": "How many guardians temporarily do not have any puppies?",
    "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the number of owners who do not own any dogs at this moment.",
    "SpiderSynQuestion": "Find the number of guardians who do not own any puppies at this moment.",
    "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How many professionals did not operate any treatment on dogs?",
    "SpiderSynQuestion": "How many veterinarians did not operate any treatment on puppies?",
    "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the number of professionals who have not treated any dogs.",
    "SpiderSynQuestion": "Find the number of veterinarians who have not treated any puppies.",
    "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.",
    "SpiderSynQuestion": "List the puppy name, age and weight of the puppies who have been abandoned? 1 stands for yes, and 0 stands for no.",
    "query": "SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.",
    "SpiderSynQuestion": "What are the puppy name, age and weight of the puppies that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.",
    "query": "SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the average age of all the dogs?",
    "SpiderSynQuestion": "What is the average age of all the puppies?",
    "query": "SELECT avg(age) FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Compute the average age of all the dogs.",
    "SpiderSynQuestion": "Compute the average age of all the puppies.",
    "query": "SELECT avg(age) FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the age of the oldest dog?",
    "SpiderSynQuestion": "What is the age of the oldest puppy?",
    "query": "SELECT max(age) FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Tell me the age of the oldest dog.",
    "SpiderSynQuestion": "Tell me the age of the oldest puppy.",
    "query": "SELECT max(age) FROM Dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How much does each charge type costs? List both charge type and amount.",
    "SpiderSynQuestion": "How much does each charge type costs? List both charge type and amount.",
    "query": "SELECT charge_type ,  charge_amount FROM Charges"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List each charge type and its amount.",
    "SpiderSynQuestion": "List each charge type and its amount.",
    "query": "SELECT charge_type ,  charge_amount FROM Charges"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "How much does the most expensive charge type costs?",
    "SpiderSynQuestion": "How much does the most expensive charge type costs?",
    "query": "SELECT max(charge_amount) FROM Charges"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What is the charge amount of the most expensive charge type?",
    "SpiderSynQuestion": "What is the charge amount of the most expensive charge type?",
    "query": "SELECT max(charge_amount) FROM Charges"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the email, cell phone and home phone of all the professionals.",
    "SpiderSynQuestion": "List the email, cell phone and home phone of all the veterinarians.",
    "query": "SELECT email_address ,  cell_number ,  home_phone FROM professionals"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are the email, cell phone and home phone of each professional?",
    "SpiderSynQuestion": "What are the email, cell phone and home phone of each veterinarian?",
    "query": "SELECT email_address ,  cell_number ,  home_phone FROM professionals"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are all the possible breed type and size type combinations?",
    "SpiderSynQuestion": "What are all the possible breed type and size type combinations?",
    "query": "SELECT DISTINCT breed_code ,  size_code FROM dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "Find the distinct breed type and size type combinations for dogs.",
    "SpiderSynQuestion": "Find the distinct breed type and size type combinations for puppies.",
    "query": "SELECT DISTINCT breed_code ,  size_code FROM dogs"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "List the first name of all the professionals along with the description of the treatment they have done.",
    "SpiderSynQuestion": "List the given name of all the veterinarians along with the description of the medical care they have done.",
    "query": "SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code"
  },
  {
    "db_id": "dog_kennels",
    "SpiderQuestion": "What are each professional's first name and description of the treatment they have performed?",
    "SpiderSynQuestion": "What are each veterinarian's first name and describing details of the health-care they have performed?",
    "query": "SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "How many singers are there?",
    "SpiderSynQuestion": "How many vocalists are there?",
    "query": "SELECT count(*) FROM singer"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What is the count of singers?",
    "SpiderSynQuestion": "What is the count of  musicians?",
    "query": "SELECT count(*) FROM singer"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "List the name of singers in ascending order of net worth.",
    "SpiderSynQuestion": "List the name of vocalists in ascending order of net worth.",
    "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the names of singers ordered by ascending net worth?",
    "SpiderSynQuestion": "What are the names of  musicians ordered by ascending net worth?",
    "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the birth year and citizenship of singers?",
    "SpiderSynQuestion": "What are the birth year and country of vocalists?",
    "query": "SELECT Birth_Year ,  Citizenship FROM singer"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the birth years and citizenships of the singers?",
    "SpiderSynQuestion": "What are the birth years and country of the musicians?",
    "query": "SELECT Birth_Year ,  Citizenship FROM singer"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "List the name of singers whose citizenship is not \"France\".",
    "SpiderSynQuestion": "List the name of vocalists whose citizenship is not \"France\".",
    "query": "SELECT Name FROM singer WHERE Citizenship != \"France\""
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the names of the singers who are not French citizens?",
    "SpiderSynQuestion": "What are the names of the musicians who are not French citizens?",
    "query": "SELECT Name FROM singer WHERE Citizenship != \"France\""
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show the name of singers whose birth year is either 1948 or 1949?",
    "SpiderSynQuestion": "Show the name of vocalists whose birth year is either 1948 or 1949?",
    "query": "SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the names of the singers whose birth years are either 1948 or 1949?",
    "SpiderSynQuestion": "What are the names of the musicians whose birth years are either 1948 or 1949?",
    "query": "SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What is the name of the singer with the largest net worth?",
    "SpiderSynQuestion": "What is the name of the vocalist with the largest net worth?",
    "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What is the name of the singer who is worth the most?",
    "SpiderSynQuestion": "What is the name of the vocalist who is worth the most?",
    "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show different citizenship of singers and the number of singers of each citizenship.",
    "SpiderSynQuestion": "Show different citizenship of vocalists and the number of vocalists of each country.",
    "query": "SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "For each citizenship, how many singers are from that country?",
    "SpiderSynQuestion": "For each country, how many musicians are from that country?",
    "query": "SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Please show the most common citizenship of singers.",
    "SpiderSynQuestion": "Please show the most common country of vocalists.",
    "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What is the msot common singer citizenship?",
    "SpiderSynQuestion": "What is the msot common vocalist country?",
    "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show different citizenships and the maximum net worth of singers of each citizenship.",
    "SpiderSynQuestion": "Show different country and the maximum net worth of musicians of each country.",
    "query": "SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "For each citizenship, what is the maximum net worth?",
    "SpiderSynQuestion": "For each country, what is the maximum net worth?",
    "query": "SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show titles of songs and names of singers.",
    "SpiderSynQuestion": "Show names of songs and names of musicians.",
    "query": "SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the song titles and singer names?",
    "SpiderSynQuestion": "What are the song names and vocalist names?",
    "query": "SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show distinct names of singers that have songs with sales more than 300000.",
    "SpiderSynQuestion": "Show distinct names of musicians that have songs with sales more than 300000.",
    "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "what are the different names of the singers that have sales more than 300000?",
    "SpiderSynQuestion": "what are the different names of the vocalists that have sales more than 300000?",
    "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show the names of singers that have more than one song.",
    "SpiderSynQuestion": "Show the names of musicians that have more than one song.",
    "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the names of the singers that have more than one songs?",
    "SpiderSynQuestion": "What are the names of the vocalists that have more than one songs?",
    "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show the names of singers and the total sales of their songs.",
    "SpiderSynQuestion": "Show the names of musicians and the total sales of their songs.",
    "query": "SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "For each singer name, what is the total sales for their songs?",
    "SpiderSynQuestion": "For each vocalist name, what is the total sales for their songs?",
    "query": "SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "List the name of singers that do not have any song.",
    "SpiderSynQuestion": "List the name of musicians that do not have any song.",
    "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What is the name of every sing that does not have any song?",
    "SpiderSynQuestion": "What is the name of every vocalist that does not have any song?",
    "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "Show the citizenship shared by singers with birth year before 1945 and after 1955.",
    "SpiderSynQuestion": "Show the citizenship shared by musicians with birth year before 1945 and after 1955.",
    "query": "SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955"
  },
  {
    "db_id": "singer",
    "SpiderQuestion": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?",
    "SpiderSynQuestion": "What are the country that are shared by musicians with a birth year before 1945 and after 1955?",
    "query": "SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955"
  },
  {
    "db_id": "real_estate_properties",
    "SpiderQuestion": "How many available features are there in total?",
    "SpiderSynQuestion": "How many available characteristic are there in total?",
    "query": "SELECT count(*) FROM Other_Available_Features"
  },
  {
    "db_id": "real_estate_properties",
    "SpiderQuestion": "What is the feature type name of feature AirCon?",
    "SpiderSynQuestion": "What is the characteristic type of feature AirCon?",
    "query": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code  =  T2.feature_type_code WHERE T1.feature_name  =  \"AirCon\""
  },
  {
    "db_id": "real_estate_properties",
    "SpiderQuestion": "Show the property type descriptions of properties belonging to that code.",
    "SpiderSynQuestion": "Show the property type descriptions of properties belonging to that code.",
    "query": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code  =  T2.property_type_code GROUP BY T1.property_type_code"
  },
  {
    "db_id": "real_estate_properties",
    "SpiderQuestion": "What are the names of properties that are either houses or apartments with more than 1 room?",
    "SpiderSynQuestion": "What are the names of properties that are either houses or apartments with more than 1 room?",
    "query": "SELECT property_name FROM Properties WHERE property_type_code  =  \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code  =  \"Apartment\" AND room_count  >  1"
  }
]